diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-24 17:48:32 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-24 17:48:32 +0000 |
commit | 351f65a128f79db6b158cd91ef083707eafb120f (patch) | |
tree | 15ebcf98ee2135fd80c3d964adedb329022f12e8 | |
parent | e975b7cec7cd941ccaa01494f98df7c571ab18f7 (diff) | |
download | tdebase-351f65a128f79db6b158cd91ef083707eafb120f.tar.gz tdebase-351f65a128f79db6b158cd91ef083707eafb120f.zip |
Fix kdestop crash
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1179155 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r-- | kdesktop/kdiconview.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kdesktop/kdiconview.cc b/kdesktop/kdiconview.cc index 0dce92ba3..4ef4e5ba6 100644 --- a/kdesktop/kdiconview.cc +++ b/kdesktop/kdiconview.cc @@ -156,6 +156,9 @@ KDIconView::KDIconView( TQWidget *parent, const char* name ) // Initialise the shadow data objects... m_shadowEngine = new KShadowEngine(new KDesktopShadowSettings(KGlobal::config())); + // Initialize media handler + mMediaListView = new TQListView(); + connect( TQApplication::clipboard(), TQT_SIGNAL(dataChanged()), this, TQT_SLOT(slotClipboardDataChanged()) ); @@ -737,8 +740,6 @@ private: void KDIconView::fillMediaListView() { - if (!mMediaListView) - mMediaListView = new TQListView(); mMediaListView->hide(); mMediaListView->clear(); KMimeType::List mimetypes = KMimeType::allMimeTypes(); |