mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-17 15:31:20 +00:00
Update status of paste action once directory has finished loading.
Since 6a6cf1ab328e7600f0c2b375e43a1e3bd236a5a7, it depends on rootItem() which is not available until the dirlister emits it.
This commit is contained in:
parent
8b306b67bf
commit
98880e4430
|
@ -497,6 +497,11 @@ void DolphinMainWindow::updatePasteAction()
|
||||||
pasteAction->setText(pasteInfo.second);
|
pasteAction->setText(pasteInfo.second);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DolphinMainWindow::slotDirectoryLoadingCompleted()
|
||||||
|
{
|
||||||
|
updatePasteAction();
|
||||||
|
}
|
||||||
|
|
||||||
void DolphinMainWindow::selectAll()
|
void DolphinMainWindow::selectAll()
|
||||||
{
|
{
|
||||||
clearStatusBar();
|
clearStatusBar();
|
||||||
|
@ -1427,6 +1432,8 @@ void DolphinMainWindow::connectViewSignals(DolphinViewContainer* container)
|
||||||
this, &DolphinMainWindow::enableStopAction);
|
this, &DolphinMainWindow::enableStopAction);
|
||||||
connect(view, &DolphinView::directoryLoadingCompleted,
|
connect(view, &DolphinView::directoryLoadingCompleted,
|
||||||
this, &DolphinMainWindow::disableStopAction);
|
this, &DolphinMainWindow::disableStopAction);
|
||||||
|
connect(view, &DolphinView::directoryLoadingCompleted,
|
||||||
|
this, &DolphinMainWindow::slotDirectoryLoadingCompleted);
|
||||||
connect(view, &DolphinView::goBackRequested,
|
connect(view, &DolphinView::goBackRequested,
|
||||||
this, static_cast<void(DolphinMainWindow::*)()>(&DolphinMainWindow::goBack));
|
this, static_cast<void(DolphinMainWindow::*)()>(&DolphinMainWindow::goBack));
|
||||||
connect(view, &DolphinView::goForwardRequested,
|
connect(view, &DolphinView::goForwardRequested,
|
||||||
|
|
|
@ -432,6 +432,11 @@ private slots:
|
||||||
*/
|
*/
|
||||||
void setUrlAsCaption(const QUrl& url);
|
void setUrlAsCaption(const QUrl& url);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Is called when the view has finished loading the directory.
|
||||||
|
*/
|
||||||
|
void slotDirectoryLoadingCompleted();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void setupActions();
|
void setupActions();
|
||||||
void setupDockWidgets();
|
void setupDockWidgets();
|
||||||
|
|
Loading…
Reference in a new issue