diff options
| author | Alexander Blair <snipa@jagtech.io> | 2020-12-10 17:58:42 -0800 |
|---|---|---|
| committer | Alexander Blair <snipa@jagtech.io> | 2020-12-10 17:58:42 -0800 |
| commit | 897946af13fbcadc496ef7e47cc4a45f76e885fa (patch) | |
| tree | 05d81fd0274d83993cba6e5d065dd940fb23e3c1 /src | |
| parent | e90626e05aeed0c8141855e4d3125addc143dd14 (diff) | |
| parent | ae8394e5f87fecabf50e1607ba384af1d8218d29 (diff) | |
| download | monzero-gui-897946af13fbcadc496ef7e47cc4a45f76e885fa.tar.gz monzero-gui-897946af13fbcadc496ef7e47cc4a45f76e885fa.tar.xz monzero-gui-897946af13fbcadc496ef7e47cc4a45f76e885fa.zip | |
Merge pull request #3260
ae8394e5 main: Linux - fix missing askDesktopShortcut setting (xiphon)
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 |
