┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-01-30 19:31:37 +0000
committerPeter Penz <[email protected]>2007-01-30 19:31:37 +0000
commite1816544942d72f5228555adcd13a4ada0a712ed (patch)
tree83d09e4afcf83a035fb47622fded63dc8e2d1729 /src/dolphinmainwindow.cpp
parentd71de955f4a0901288d060a2eaceca305d11a203 (diff)
update to changes in class KGlobal (kdelibs)
svn path=/trunk/playground/utils/dolphin/; revision=628641
Diffstat (limited to 'src/dolphinmainwindow.cpp')
-rw-r--r--src/dolphinmainwindow.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index e4fcc6a97..fa9835480 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -324,7 +324,7 @@ void DolphinMainWindow::closeEvent(QCloseEvent* event)
// TODO: I assume there will be a generic way in KDE 4 to store the docks
// of the main window. In the meantime they are stored manually:
- QString filename = KStandardDirs::locateLocal("data", KGlobal::instance()->instanceName());
+ QString filename = KStandardDirs::locateLocal("data", KGlobal::mainComponent().componentName());
filename.append("/panels_layout");
QFile file(filename);
if (file.open(QIODevice::WriteOnly)) {
@@ -924,8 +924,7 @@ void DolphinMainWindow::loadSettings()
// TODO: I assume there will be a generic way in KDE 4 to restore the docks
// of the main window. In the meantime they are restored manually (see also
// DolphinMainWindow::closeEvent() for more details):
- QString filename = KStandardDirs::locateLocal("data", KGlobal::instance()->instanceName());
- filename.append("/panels_layout");
+ QString filename = KStandardDirs::locateLocal("data", KGlobal::mainComponent().componentName()); filename.append("/panels_layout");
QFile file(filename);
if (file.open(QIODevice::ReadOnly)) {
QByteArray data = file.readAll();