[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/4.5/kdebase/workspace/plasma/desktop/shell
From: Aaron J. Seigo <aseigo () kde ! org>
Date: 2010-09-11 1:26:44
Message-ID: 20100911012644.8B5EEAC888 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1173984 by aseigo:
remove the stored file on activity removal
M +5 -3 activity.cpp
--- branches/KDE/4.5/kdebase/workspace/plasma/desktop/shell/activity.cpp #1173983:1173984
@@ -31,6 +31,7 @@
#include <KConfig>
#include <KIcon>
#include <KMessageBox>
+#include <KStandardDirs>
#include <KWindowSystem>
#include <kephal/screens.h>
@@ -116,7 +117,9 @@
foreach (Plasma::Containment *c, m_containments) {
c->destroy(false);
}
- //FIXME delete your saved ones too
+
+ const QString name = "activities/" + m_id;
+ QFile::remove(KStandardDirs::locateLocal("appdata", name));
}
}
@@ -241,8 +244,7 @@
void Activity::close()
{
- QString name = "activities/";
- name += m_id;
+ const QString name = "activities/" + m_id;
KConfig external(name, KConfig::SimpleConfig, "appdata");
foreach (const QString &group, external.groupList()) {
KConfigGroup cg(&external, group);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic