diff options
| author | xiphon <xiphon@protonmail.com> | 2020-12-07 20:06:55 +0000 |
|---|---|---|
| committer | xiphon <xiphon@protonmail.com> | 2020-12-08 01:02:00 +0000 |
| commit | ae8394e5f87fecabf50e1607ba384af1d8218d29 (patch) | |
| tree | 42d660496c2ac2df35dd18e319a7c13e6a224d67 /src | |
| parent | ea1fee2f5f842a293458a66638c15ff79e1d101d (diff) | |
| download | monzero-gui-ae8394e5f87fecabf50e1607ba384af1d8218d29.tar.gz monzero-gui-ae8394e5f87fecabf50e1607ba384af1d8218d29.tar.xz monzero-gui-ae8394e5f87fecabf50e1607ba384af1d8218d29.zip | |
main: Linux - fix missing askDesktopShortcut setting
Diffstat (limited to 'src')
| -rw-r--r-- | src/qt/utils.cpp | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/src/qt/utils.cpp b/src/qt/utils.cpp index b7d649f4..b2e04ec2 100644 --- a/src/qt/utils.cpp +++ b/src/qt/utils.cpp @@ -28,7 +28,6 @@ #include <QtCore> #include <QCoreApplication> -#include <QMessageBox> #include <QtGlobal> #include "TailsOS.h" @@ -89,17 +88,6 @@ QString getAccountName(){ } #ifdef Q_OS_LINUX -bool askInstallDesktopEntry() -{ - QMessageBox msgBox( - QMessageBox::Question, - QObject::tr("Monero GUI"), - QObject::tr("Would you like to register Monero GUI Desktop entry?"), - QMessageBox::Yes | QMessageBox::No); - msgBox.setDefaultButton(QMessageBox::Yes); - return msgBox.exec() == QMessageBox::Yes; -} - QString xdgMime(){ return QString( "[Desktop Entry]\n" @@ -139,11 +127,8 @@ void registerXdgMime(){ } else { - if (askInstallDesktopEntry()) - { - QDir().mkpath(QFileInfo(filePath).path()); - fileWrite(filePath, mime); - } + QDir().mkpath(QFileInfo(filePath).path()); + fileWrite(filePath, mime); } } #endif |
