]> git.entuzijast.net Git - imunes.git/commitdiff
Fix a bug with pointer / cursor taking wrong icon / shape after choosing
authormarko <marko>
Wed, 13 Jul 2005 22:56:55 +0000 (22:56 +0000)
committermarko <marko>
Wed, 13 Jul 2005 22:56:55 +0000 (22:56 +0000)
File->New in main menu.

Also prevent vimageCleanup from being called unnecessarily from within
filemgmt.tcl when in edit mode.

Bug found by: miljenko
Submitted by:
Requested by:
Reviewed by:
Approved by:
Obtained from:

exec.tcl
filemgmt.tcl

index 8d085bee5d6ac5db6e5698d1c673c01e86ef76d3..01e78a5284885b319a16c2423f428aef890adde3 100755 (executable)
--- a/exec.tcl
+++ b/exec.tcl
@@ -306,6 +306,8 @@ proc deployCfg {} {
 
 
 proc vimageCleanup {} {
+    global .c
+
     set t_start [clock seconds]
     set vimages [join [nexec vimage -l | fgrep -v "    " | cut -d: -f 1]]
     set defindex [lsearch $vimages default]
@@ -330,6 +332,7 @@ proc vimageCleanup {} {
     catch { nexec rm -f /usr/local/xorp/config.boot }
     catch { nexec mv /etc/resolv.conf.bak /etc/resolv.conf }
     statline "Cleanup completed in [expr [clock seconds] - $t_start] seconds."
+    .c config -cursor left_ptr
 }
 
 
index 60f4c68635355fce9fddd3d6dbcb87b7598061e1..ec4ffb7c33c3975ce42430cd88ee9d7634f216c7 100755 (executable)
@@ -78,9 +78,11 @@ set fileTypes {{"IMUNES network configuration" {.imn} }
 
 
 proc newFile {} {
-    global currentFile 
+    global currentFile oper_mode
 
-    vimageCleanup
+    if { $oper_mode == "exec" } {
+       vimageCleanup
+    }
     loadCfg ""
     redrawAll
     set currentFile ""