Error when closing when not saving unsaved message

Bug #228338 reported by sander
2
Affects Status Importance Assigned to Milestone
Coccinella
Fix Released
Medium
Mats

Bug Description

When I close Coccinella with a message dialog opened, it asks me if I want to save that message. When I click "No" I get the following error and Coccinella is not closed:

can't use empty string as operand of "!"
can't use empty string as operand of "!"
    while executing
"if {![::UserActions::DoQuit -warning 1]} {
     set result stop
 }"
    (procedure "::JUI::CloseHook" line 6)
    invoked from within
"::JUI::CloseHook .jmain"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 $topcache($w,-closecommand) $w"
    (procedure "::UI::DoCloseWindow" line 24)
    invoked from within
"::UI::DoCloseWindow .jmain wm"
    (command for "WM_DELETE_WINDOW" window manager protocol)

sander (s-devrieze)
Changed in coccinella:
assignee: nobody → matsben
importance: Undecided → Medium
Revision history for this message
Mats (matsben) wrote :

I didn't reproduce it but found a flaw in ::UserActions::DoQuit which returned empty (and not 0|1) in one of its branches.

Changed in coccinella:
milestone: none → 0.96.10
status: New → Fix Committed
sander (s-devrieze)
Changed in coccinella:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.