[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kdebase/kdialog
From:       David Faure <faure () kde ! org>
Date:       2006-04-09 22:14:07
Message-ID: 1144620847.212608.11606.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 528043 by dfaure:

Fix


 M  +3 -3      kdialog.cpp  


--- branches/KDE/3.5/kdebase/kdialog/kdialog.cpp #528042:528043
@@ -110,7 +110,6 @@
     WinIdEmbedder(bool printID, WId winId):
         QObject(qApp), print(printID), id(winId)
     {
-        assert( id );
         if (qApp)
             qApp->installEventFilter(this);
     }
@@ -130,9 +129,10 @@
         if (print)
             cout << "winId: " << w->winId() << endl;
 #ifdef Q_WS_X11
-        XSetTransientForHint(w->x11Display(), w->winId(), id);
+        if (id)
+            XSetTransientForHint(w->x11Display(), w->winId(), id);
 #endif
-        deleteLater(); // delete - set the transient hint only on the first dialog
+        deleteLater(); // WinIdEmbedder is not needed anymore after the first dialog was shown
         return false;
     }
     return QObject::eventFilter(o, e);
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic