┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKevin Ottens <[email protected]>2007-06-15 00:52:25 +0000
committerKevin Ottens <[email protected]>2007-06-15 00:52:25 +0000
commit2b8e67d7f260847c803eac33712ba69b6785bd1d (patch)
tree8851430cac4f9593898de92df6857132b9d294a3 /src
parent65e8bdc4bc4a0228a85b23f68240945c42dcee63 (diff)
Make use of the error messages coming from the places model.
svn path=/trunk/KDE/kdebase/apps/; revision=675760
Diffstat (limited to 'src')
-rw-r--r--src/dolphinmainwindow.cpp10
-rw-r--r--src/dolphinmainwindow.h6
2 files changed, 16 insertions, 0 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index 35c50e88d..42e80f932 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -98,6 +98,8 @@ DolphinMainWindow::DolphinMainWindow(int id) :
this, SLOT(slotUndoAvailable(bool)));
connect(undoManager, SIGNAL(undoTextChanged(const QString&)),
this, SLOT(slotUndoTextChanged(const QString&)));
+ connect(DolphinSettings::instance().placesModel(), SIGNAL(errorMessage(const QString&)),
+ this, SLOT(slotHandlePlacesError(const QString&)));
}
DolphinMainWindow::~DolphinMainWindow()
@@ -480,6 +482,14 @@ void DolphinMainWindow::quit()
close();
}
+void DolphinMainWindow::slotHandlePlacesError(const QString &message)
+{
+ if (!message.isEmpty()) {
+ DolphinStatusBar* statusBar = m_activeViewContainer->statusBar();
+ statusBar->setMessage(message, DolphinStatusBar::Error);
+ }
+}
+
void DolphinMainWindow::slotHandleJobError(KJob* job)
{
if (job->error() != 0) {
diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h
index a165573a1..17a7dce6a 100644
--- a/src/dolphinmainwindow.h
+++ b/src/dolphinmainwindow.h
@@ -191,6 +191,12 @@ private slots:
void properties();
/**
+ * Shows the error information from the places model
+ * in the status bar.
+ */
+ void slotHandlePlacesError(const QString &message);
+
+ /**
* Shows the error information of the job \a job
* in the status bar.
*/