forked from thoth-medievia/Mudlet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BugFix: close button on map custom exit dialog not cancelling line dr…
…awing As per http://bugs.launchpad.net/mudlet/+bug/1369041 the built-in dialog button that some OS/Window systems provide did close the dialog but did not cancel the custom line drawing process. This fixes the matter by connecting the reject() signal that the button produces to code to clean up. During debugging this it became clear that: if the custom line dialog was being displayed but before the user had selected the exit to draw the line for, it was possible to click on the map and add points to create a line; this would be for a custom line with an Empty exit name which should not be permitted. To prevent this a flag "mDialogLock" was added to the class to prevent the mouse events that would draw or modify a custom line from proceeding until the custom line dialog had been used or cancelled. Signed-off-by: Stephen Lyons <slysven@virginmedia.com>
- Loading branch information
Showing
2 changed files
with
59 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters