summaryrefslogtreecommitdiffstats
path: root/kdesktop
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-24 17:48:32 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-24 17:48:32 +0000
commit351f65a128f79db6b158cd91ef083707eafb120f (patch)
tree15ebcf98ee2135fd80c3d964adedb329022f12e8 /kdesktop
parente975b7cec7cd941ccaa01494f98df7c571ab18f7 (diff)
downloadtdebase-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
Diffstat (limited to 'kdesktop')
-rw-r--r--kdesktop/kdiconview.cc5
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();