┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.h
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.h
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.h')
-rw-r--r--src/dolphinmainwindow.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h
index 030c8bb28..e26bf50dd 100644
--- a/src/dolphinmainwindow.h
+++ b/src/dolphinmainwindow.h
@@ -138,6 +138,8 @@ public Q_SLOTS:
*/
void activateWindow();
+ bool isActiveWindow();
+
/**
* Determines if a URL is open in any tab.
* @note Use of QString instead of QUrl is required to be callable via DBus.
@@ -147,6 +149,15 @@ public Q_SLOTS:
*/
bool isUrlOpen(const QString &url);
+ /**
+ * Determines if a URL or it's parent is open in any tab.
+ * @note Use of QString instead of QUrl is required to be callable via DBus.
+ *
+ * @param url URL to look for
+ * @returns true if url or it's parent is currently open in a tab, false otherwise.
+ */
+ bool isUrlOrParentOpen(const QString &url);
+
/**
* Pastes the clipboard data into the currently selected folder