diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-04-19 12:50:40 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-04-19 12:50:40 -0500 |
commit | 5f4287e56dd5c1feecc08843aae1d4e4b8835d1e (patch) | |
tree | 16ee641017a3a2f176b6a7291482b6146381e46d /kdesktop/kdiconview.cc | |
parent | 6640770b3239ad117d29df2929e5b7442e48ee3a (diff) | |
download | tdebase-5f4287e56dd5c1feecc08843aae1d4e4b8835d1e.tar.gz tdebase-5f4287e56dd5c1feecc08843aae1d4e4b8835d1e.zip |
Fix Documents folder creation dialog
This resolves Bug 976
Prevent multiple kdesktop_lock processes from spawning per user
Diffstat (limited to 'kdesktop/kdiconview.cc')
-rw-r--r-- | kdesktop/kdiconview.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/kdesktop/kdiconview.cc b/kdesktop/kdiconview.cc index 7aa500162..cc2f0ba07 100644 --- a/kdesktop/kdiconview.cc +++ b/kdesktop/kdiconview.cc @@ -198,8 +198,9 @@ KDIconView::KDIconView( TQWidget *parent, const char* name ) KDIconView::~KDIconView() { - if (m_dotDirectory && !m_bEditableDesktopIcons) + if (m_dotDirectory && !m_bEditableDesktopIcons) { m_dotDirectory->rollback(false); // Don't save positions + } delete m_dotDirectory; delete m_dirLister; @@ -210,8 +211,9 @@ void KDIconView::initDotDirectories() { TQStringList dirs = m_desktopDirs; KURL u = desktopURL(); - if (u.isLocalFile()) + if (u.isLocalFile()) { dirs.prepend(u.path()); + } TQString prefix = iconPositionGroupPrefix(); TQString dotFileName = locateLocal("appdata", "IconPositions"); @@ -1552,8 +1554,9 @@ void KDIconView::slotItemRenamed(TQIconViewItem* _item, const TQString &name) || (type->name() == "media/builtin-webbrowser") ) { bDesktopFile = true; - if (!newName.endsWith(".desktop")) + if (!newName.endsWith(".desktop")) { newName += ".desktop"; + } } else if(type->name() == "inode/directory") { desktopFile += "/.directory"; |