[dia/dia-0-97] Bug 611374 : don't crash on delete while moving
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia/dia-0-97] Bug 611374 : don't crash on delete while moving
- Date: Sun, 11 Dec 2011 16:18:53 +0000 (UTC)
commit 19647c38eae85d3ba5e8c2960fad4425c0e1c1b9
Author: Hans Breuer <hans breuer org>
Date: Sun Dec 11 17:15:25 2011 +0100
Bug 611374 : don't crash on delete while moving
Manually merged from master.
app/commands.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/app/commands.c b/app/commands.c
index 47d597b..3abd6f4 100644
--- a/app/commands.c
+++ b/app/commands.c
@@ -571,6 +571,12 @@ edit_delete_callback (GtkAction *action)
GList *delete_list;
DDisplay *ddisp;
+ /* Avoid crashing while moving or resizing and deleting ... */
+ if (gdk_pointer_is_grabbed ()) {
+ gdk_beep (); /* ... no matter how much sense it makes. */
+ return;
+ }
+
ddisp = ddisplay_active();
if (!ddisp) return;
if (textedit_mode(ddisp)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]