[gimp/gimp-2-10] app: make sure crash-saving of open images to XCF doesn't call the GUI
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] app: make sure crash-saving of open images to XCF doesn't call the GUI
- Date: Sun, 17 Jun 2018 17:46:17 +0000 (UTC)
commit 918043a9d9e72ba9498c906fc965d81f480c6701
Author: Michael Natterer <mitch gimp org>
Date: Sun Jun 17 19:39:37 2018 +0200
app: make sure crash-saving of open images to XCF doesn't call the GUI
gimp_eek(): simply increase gimp->busy so XCF saving calling
gimp_set_busy() and gimp_unset_busy() won't call the GUI layer and do
whatever windowing system calls to set busy cursors.
(cherry picked from commit eaddef595e9c4df688e0d64656c7df75eb316db7)
app/errors.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/app/errors.c b/app/errors.c
index 4996fd1dfe..1598470d61 100644
--- a/app/errors.c
+++ b/app/errors.c
@@ -454,6 +454,12 @@ gimp_eek (const gchar *reason,
*/
if (backup_path)
{
+ /* increase the busy counter, so XCF saving calling
+ * gimp_set_busy() and gimp_unset_busy() won't call the GUI
+ * layer and do whatever windowing system calls to set cursors.
+ */
+ the_errors_gimp->busy++;
+
/* The index of 'XXX' in backup_path string. */
num_idx = strlen (backup_path) - 7;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]