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

List:       kde-commits
Subject:    branches/KDE/4.0/kdelibs/kdeui/itemviews
From:       Albert Astals Cid <tsdgeos () terra ! es>
Date:       2008-01-18 23:34:06
Message-ID: 1200699246.783744.24052.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 763245 by aacid:

Backport r763244
****************
Fix regression from KDE 3.5
As the comment says
// can't call createWidgets directly because it calls virtual functions
// that might not work if called directly from here due to how inheritance works


 M  +3 -2      ktreewidgetsearchline.cpp  


--- branches/KDE/4.0/kdelibs/kdeui/itemviews/ktreewidgetsearchline.cpp #763244:763245
@@ -585,8 +585,9 @@
 {
   d->treeWidget = treeWidget;
 
-  createWidgets();
-
+  // can't call createWidgets directly because it calls virtual functions
+  // that might not work if called directly from here due to how inheritance works
+  QMetaObject::invokeMethod(this, SLOT(createWidgets()), Qt::QueuedConnection);
 }
 
 KTreeWidgetSearchLineWidget::~KTreeWidgetSearchLineWidget()
[prev in list] [next in list] [prev in thread] [next in thread] 

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