diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 7fcbe498f..bcff50cea 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -184,6 +184,10 @@ void DolphinMainWindow::openDirectories(const QList<KUrl>& dirs) void DolphinMainWindow::openFiles(const QList<KUrl>& files) { + if (files.isEmpty()) { + return; + } + // Get all distinct directories from 'files' and open a tab // for each directory. If the "split view" option is enabled, two // directories are shown inside one tab (see openDirectories()). |
