aboutsummaryrefslogtreecommitdiff
path: root/lumina-fm/MainUI.cpp
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-10-15 13:36:02 -0400
committerKen Moore <moorekou@gmail.com>2015-10-15 13:36:02 -0400
commita421b32852251b75efdbec5f27d5a8bed7dc71d7 (patch)
tree7a05ae7a88d9be7de0c9408adafd6c506d53d505 /lumina-fm/MainUI.cpp
parentAdd a "-new-instance" CLI flag for any app using the LuminaSingleInstance cla... (diff)
downloadlumina-a421b32852251b75efdbec5f27d5a8bed7dc71d7.tar.gz
lumina-a421b32852251b75efdbec5f27d5a8bed7dc71d7.tar.bz2
lumina-a421b32852251b75efdbec5f27d5a8bed7dc71d7.zip
Add an option to lumina-fm to spawn a new instance/window (Ctrl-N keyboard shortcut, or in the file menu).
Diffstat (limited to 'lumina-fm/MainUI.cpp')
-rw-r--r--lumina-fm/MainUI.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/lumina-fm/MainUI.cpp b/lumina-fm/MainUI.cpp
index 10b6dc82..8b367f39 100644
--- a/lumina-fm/MainUI.cpp
+++ b/lumina-fm/MainUI.cpp
@@ -201,7 +201,8 @@ void MainUI::setupIcons(){
//Setup all the icons using libLumina
ui->actionClose->setIcon( LXDG::findIcon("application-exit","") );
- ui->actionNew_Tab->setIcon( LXDG::findIcon("tab-new-background","") );
+ ui->actionNew_Tab->setIcon( LXDG::findIcon("tab-new","") );\
+ ui->actionNew_Window->setIcon( LXDG::findIcon("window-new","") );
//ui->action_Preferences->setIcon( LXDG::findIcon("configure","") );
ui->actionManage_Bookmarks->setIcon( LXDG::findIcon("bookmarks-organize","") );
ui->actionScan->setIcon( LXDG::findIcon("system-search","") );
@@ -369,6 +370,10 @@ void MainUI::DisplayStatusBar(QString msg){
//---------------------
//Menu Actions
//---------------------
+void MainUI::on_actionNew_Window_triggered(){
+ QProcess::startDetached("lumina-fm -new-instance");
+}
+
void MainUI::on_actionNew_Tab_triggered(){
OpenDirs(QStringList() << QDir::homePath());
}
bgstack15