diff options
author | Kjell Tore Ullavik <kt@mathblocks.net> | 2017-11-23 06:38:36 +0100 |
---|---|---|
committer | Kjell Tore Ullavik <kt@mathblocks.net> | 2017-11-23 06:38:36 +0100 |
commit | 8b35ad9848dfe24741d37b771b7e2704a4c6f5d0 (patch) | |
tree | a04e850d477ad3b0e0b7677e8dfd0fe36264140d /src-qt5 | |
parent | Merge branch 'master' of github.com:trueos/lumina (diff) | |
download | lumina-8b35ad9848dfe24741d37b771b7e2704a4c6f5d0.tar.gz lumina-8b35ad9848dfe24741d37b771b7e2704a4c6f5d0.tar.bz2 lumina-8b35ad9848dfe24741d37b771b7e2704a4c6f5d0.zip |
Fix right click crash when qsudo is not installed.
Diffstat (limited to 'src-qt5')
-rw-r--r-- | src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp b/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp index 453e9e61..d3b0ae2b 100644 --- a/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp +++ b/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp @@ -289,7 +289,9 @@ void DirWidget::createMenus(){ cOpenMenu->addAction(LXDG::findIcon("utilities-terminal",""), tr("Open Current Dir in a Terminal"), this, SLOT(openTerminal()), kOpTerm->key()); cOpenMenu->addAction(LXDG::findIcon("media-slideshow",""), tr("SlideShow"), this, SLOT(openInSlideshow()), kOpSS->key()); cOpenMenu->addAction(LXDG::findIcon("media-playback-start-circled","media-playback-start"), tr("Multimedia Player"), this, SLOT(openMultimedia()), kOpMM->key()); - if(LUtils::isValidBinary("qsudo")){ cOpenMenu->addAction(LXDG::findIcon("", ""), tr("Open Current Dir as Root"), this, SLOT(openRootFM())); + if(LUtils::isValidBinary("qsudo")){ + cOpenMenu->addAction(LXDG::findIcon("", ""), tr("Open Current Dir as Root"), this, SLOT(openRootFM())); + } if(cArchiveMenu==0){ cArchiveMenu = new QMenu(this); } cArchiveMenu->setTitle(tr("Archive Options")); @@ -327,9 +329,6 @@ void DirWidget::createMenus(){ if(LUtils::isValidBinary("lumina-fileinfo")){ cFViewMenu->addAction(LXDG::findIcon("edit-find-replace",""), tr("Properties"), this, SLOT(fileProperties()) ); } - -} - } BrowserWidget* DirWidget::currentBrowser(){ |