Changeset 4912
- Timestamp:
- 04/12/10 14:23:39
(5 months ago)
- Author:
- joliver
- Message:
Fixes for Fogbugz case 6560
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r4910 |
r4912 |
|
| 198 | 198 | if {$vars(path_type) == "monolithic"} { |
|---|
| 199 | 199 | set title "Open Monolithic Policy" |
|---|
| | 200 | set initDirName {} |
|---|
| 200 | 201 | } else { |
|---|
| 201 | 202 | set title "Open Modular Policy" |
|---|
| 202 | | } |
|---|
| 203 | | set f [tk_getOpenFile -initialdir [file dirname $vars(primary_file)] \ |
|---|
| | 203 | if {$vars(primary_file) != {} } { |
|---|
| | 204 | set initDirName [file dirname $vars(primary_file)] |
|---|
| | 205 | } else { |
|---|
| | 206 | set initDirName [file dirname $vars(last_module)] |
|---|
| | 207 | } |
|---|
| | 208 | } |
|---|
| | 209 | set f [tk_getOpenFile -initialdir $initDirName \ |
|---|
| 204 | 210 | -initialfile $vars(primary_file) -parent $dialog -title $title] |
|---|
| 205 | 211 | if {$f != {}} { |
|---|
| … | … | |
| 212 | 218 | variable vars |
|---|
| 213 | 219 | variable dialog |
|---|
| 214 | | set paths [tk_getOpenFile -initialdir [file dirname $vars(last_module)] \ |
|---|
| | 220 | |
|---|
| | 221 | if {$vars(last_module) != {} } { |
|---|
| | 222 | set initDirName [file dirname $vars(last_module)] |
|---|
| | 223 | } else { |
|---|
| | 224 | set initDirName [file dirname $vars(primary_file)] |
|---|
| | 225 | } |
|---|
| | 226 | set paths [tk_getOpenFile -initialdir $initDirName \ |
|---|
| 215 | 227 | -initialfile $vars(last_module) -parent $dialog \ |
|---|
| 216 | 228 | -title "Open Module" -multiple 1] |
|---|
| … | … | |
| 219 | 231 | } |
|---|
| 220 | 232 | foreach f $paths { |
|---|
| 221 | | addModule $f |
|---|
| | 233 | # tk_getOpenFile returns "initialfile" as a selected file, so skip it. |
|---|
| | 234 | if { $f != $vars(last_module) } { |
|---|
| | 235 | addModule $f |
|---|
| | 236 | } |
|---|
| 222 | 237 | } |
|---|
| 223 | 238 | } |
|---|
| r4585 |
r4912 |
|
| 37 | 37 | } |
|---|
| 38 | 38 | ProgressDlg .apol_progress -title $title \ |
|---|
| 39 | | -type normal -stop {} -separator 1 -parent . -maximum 2 \ |
|---|
| | 39 | -type normal -stop {} -separator 1 -parent [focus] -maximum 2 \ |
|---|
| 40 | 40 | -width $text_width -textvariable Apol_Progress_Dialog::text \ |
|---|
| 41 | 41 | -variable Apol_Progress_Dialog::val |
|---|
| r4910 |
r4912 |
|
| 128 | 128 | } \ |
|---|
| 129 | 129 | } p] || $p == "NULL"} { |
|---|
| 130 | | tk_messageBox -icon error -type ok -title "Open Policy" -parent . \ |
|---|
| | 130 | tk_messageBox -icon error -type ok -title "Open Policy" -parent [focus] \ |
|---|
| 131 | 131 | -message "[apol_tcl_get_error_string]" |
|---|
| 132 | 132 | return -1 ;# indicates failed to open policy |
|---|
| … | … | |
| 145 | 145 | [llength $::Apol_Types::attriblist] > 0 && \ |
|---|
| 146 | 146 | $show_fake_attrib_warning} { |
|---|
| 147 | | set d [Dialog .fake_attribute_dialog -modal local -parent . \ |
|---|
| | 147 | set d [Dialog .fake_attribute_dialog -modal local -parent [focus] \ |
|---|
| 148 | 148 | -title "Open Policy" -separator 1] |
|---|
| 149 | 149 | $d add -text "OK" |
|---|
Download in other formats:
* Generating other formats may take time.