┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.cpp
diff options
context:
space:
mode:
authorAndrey Butirsky <[email protected]>2022-05-24 16:24:24 +0300
committerAndrey Butirsky <[email protected]>2022-06-22 21:49:37 +0300
commit73ff57bef44984643bf1ffdb9a478095cfb78dfb (patch)
tree703fad163b2f2eefe953e120e3b752cfe6aa37c5 /src/dolphinmainwindow.cpp
parent0b208fd990b71390367d29b0f34323f4c64b3d99 (diff)
do not open excessive tab
even if directory of the file to be created is not the top-most opened in TreeView BUG: 440663
Diffstat (limited to 'src/dolphinmainwindow.cpp')
-rw-r--r--src/dolphinmainwindow.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index 0b0f4f96a..24da84132 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -285,6 +285,11 @@ void DolphinMainWindow::activateWindow()
KWindowSystem::activateWindow(window()->effectiveWinId());
}
+bool DolphinMainWindow::isActiveWindow()
+{
+ return window()->isActiveWindow();
+}
+
void DolphinMainWindow::showCommand(CommandType command)
{
DolphinStatusBar* statusBar = m_activeViewContainer->statusBar();
@@ -2627,3 +2632,7 @@ bool DolphinMainWindow::isUrlOpen(const QString &url)
return m_tabWidget->isUrlOpen(QUrl::fromUserInput(url));
}
+bool DolphinMainWindow::isUrlOrParentOpen(const QString &url)
+{
+ return m_tabWidget->isUrlOrParentOpen(QUrl::fromUserInput(url));
+}