┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinnewmenu.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-06-07 21:10:48 +0000
committerPeter Penz <[email protected]>2007-06-07 21:10:48 +0000
commitbe9746e87bb6a42e641dbf36c528a60fb564420a (patch)
tree678e044f977b702685aa7267957b797f623efbb3 /src/dolphinnewmenu.cpp
parent5de9950182b5a1b0b99e4cc51e48d4d83b6bef24 (diff)
First big step to make it possible that the DolphinView can be embedded as KPart into Konqueror (discussed with David Faure). A lot of refactoring of the DolphinView has been done:
- The DolphinView does not contain the URL navigator, the filterbar and the statusbar anymore. Those widgets have been moved to DolphinViewContainer. - The DolphinView does not contain any reference to the main window anymore. Currently there are some minor regressions (the statusbar shows less informations, renaming has been deactivated), but they will get fixed during the next days. Also still a lot of interface cleanups must be done, but let's just do it step by step... svn path=/trunk/KDE/kdebase/apps/; revision=672692
Diffstat (limited to 'src/dolphinnewmenu.cpp')
-rw-r--r--src/dolphinnewmenu.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dolphinnewmenu.cpp b/src/dolphinnewmenu.cpp
index 5cd8a4d09..100f20a52 100644
--- a/src/dolphinnewmenu.cpp
+++ b/src/dolphinnewmenu.cpp
@@ -22,6 +22,7 @@
#include "dolphinmainwindow.h"
#include "dolphinstatusbar.h"
#include "dolphinview.h"
+#include "dolphinviewcontainer.h"
#include <kactioncollection.h>
#include <kio/job.h>
@@ -39,7 +40,7 @@ DolphinNewMenu::~DolphinNewMenu()
void DolphinNewMenu::slotResult(KJob* job)
{
if (job->error()) {
- DolphinStatusBar* statusBar = m_mainWin->activeView()->statusBar();
+ DolphinStatusBar* statusBar = m_mainWin->activeViewContainer()->statusBar();
statusBar->setMessage(job->errorString(), DolphinStatusBar::Error);
} else {
KNewMenu::slotResult(job);