mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Make use of the error messages coming from the places model.
svn path=/trunk/KDE/kdebase/apps/; revision=675760
This commit is contained in:
parent
65e8bdc4bc
commit
2b8e67d7f2
2 changed files with 16 additions and 0 deletions
|
@ -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) {
|
||||
|
|
|
@ -190,6 +190,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.
|
||||
|
|
Loading…
Reference in a new issue