Package: kde-workspace / 4:4.11.13-2

qguiplatformplugin_kde_NULL_check.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Fixes crashes caused by making objects hidden before they have
 ever been set as visible.
Author: "Dr. David Alan Gilbert" <debian@treblig.org>
Signed-By: Didier Raboud <didier@raboud.com>
Bugs-Debian: #603480
Last-Update: 2010-11-28
Index: kde-workspace/qguiplatformplugin_kde/qguiplatformplugin_kde.cpp
===================================================================
--- kde-workspace.orig/qguiplatformplugin_kde/qguiplatformplugin_kde.cpp	2013-11-08 16:32:02.168862770 +0100
+++ kde-workspace/qguiplatformplugin_kde/qguiplatformplugin_kde.cpp	2013-11-08 16:32:02.164862932 +0100
@@ -249,7 +249,9 @@
             kdefd->setConfirmOverwrite(qfd->confirmOverwrite());
             kdefd->setSelection(qfd->selectedFiles().value(0));
         }
-        kdefd->setVisible(visible);
+        if (kdefd) {
+            kdefd->setVisible(visible);
+        }
         return true;
     }
     virtual QDialog::DialogCode fileDialogResultCode(QFileDialog *qfd)