diff options
Diffstat (limited to 'src/dolphinmainwindow.cpp')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index af9bd0a01..9748c6e24 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -323,6 +323,11 @@ void DolphinMainWindow::slotUndo() UndoManager::instance().undo(this); } +void DolphinMainWindow::slotNewMainWindow() +{ + DolphinApplication::app()->createMainWindow()->show(); +} + void DolphinMainWindow::closeEvent(QCloseEvent* event) { // KDE4-TODO @@ -1216,6 +1221,9 @@ void DolphinMainWindow::loadSettings() void DolphinMainWindow::setupActions() { // setup 'File' menu + KAction *action = new KAction(KIcon("window_new"), i18n( "New &Window" ), actionCollection(), "new_window" ); + connect(action, SIGNAL(triggered()), this, SLOT(slotNewMainWindow())); + KAction* createFolder = new KAction(i18n("Folder..."), actionCollection(), "create_folder"); createFolder->setIcon(KIcon("folder")); createFolder->setShortcut(Qt::Key_N); |
