diff options
| author | Peter Penz <[email protected]> | 2010-09-22 19:39:46 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2010-09-22 19:39:46 +0000 |
| commit | 5bb2a0f3c9f2d07dcb0739b88e37b203b451ecf3 (patch) | |
| tree | aece9722a8fc1d23d0c0ce791d650c5d8a20d3fe /src/dolphinmainwindow.cpp | |
| parent | abefc8663ac5c9dc15ad08408e224b3a3cef3b6f (diff) | |
Unbelievable: I simply forgot to implement the Stop-action in Dolphin since KDE SC 4.0. Well better later than never: Done now :-)
BUG: 233836
svn path=/trunk/KDE/kdebase/apps/; revision=1178344
Diffstat (limited to 'src/dolphinmainwindow.cpp')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 41ba52419..9a5e5e3a8 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -791,6 +791,17 @@ void DolphinMainWindow::reloadView() void DolphinMainWindow::stopLoading() { + m_activeViewContainer->view()->stopLoading(); +} + +void DolphinMainWindow::enableStopAction() +{ + actionCollection()->action("stop")->setEnabled(true); +} + +void DolphinMainWindow::disableStopAction() +{ + actionCollection()->action("stop")->setEnabled(false); } void DolphinMainWindow::toggleFilterBarVisibility(bool show) @@ -1689,6 +1700,10 @@ void DolphinMainWindow::connectViewSignals(DolphinViewContainer* container) this, SLOT(openNewTab(const KUrl&))); connect(view, SIGNAL(requestContextMenu(KFileItem, const KUrl&, const QList<QAction*>&)), this, SLOT(openContextMenu(KFileItem, const KUrl&, const QList<QAction*>&))); + connect(view, SIGNAL(startedPathLoading(KUrl)), + this, SLOT(enableStopAction())); + connect(view, SIGNAL(finishedPathLoading(KUrl)), + this, SLOT(disableStopAction())); const KUrlNavigator* navigator = container->urlNavigator(); connect(navigator, SIGNAL(urlChanged(const KUrl&)), |
