diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2014-03-12 14:47:41 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2014-03-12 14:47:41 +0000 |
| commit | 4bdeafab8e4f072193e84808a5e197b5686f877e (patch) | |
| tree | 19dc605f793c154c773058b307ff0854fda9a46b /src/plugins/CommandLineOptions/UninstallOption | |
| parent | 532ad84642b023d4d71d87074db8043a6e342ee0 (diff) | |
| download | qmmp-4bdeafab8e4f072193e84808a5e197b5686f877e.tar.gz qmmp-4bdeafab8e4f072193e84808a5e197b5686f877e.tar.bz2 qmmp-4bdeafab8e4f072193e84808a5e197b5686f877e.zip | |
fixed uninstall plugin
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@4157 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/CommandLineOptions/UninstallOption')
| -rw-r--r-- | src/plugins/CommandLineOptions/UninstallOption/UninstallOption.pro | 10 | ||||
| -rw-r--r-- | src/plugins/CommandLineOptions/UninstallOption/uninstalloption.cpp | 6 |
2 files changed, 6 insertions, 10 deletions
diff --git a/src/plugins/CommandLineOptions/UninstallOption/UninstallOption.pro b/src/plugins/CommandLineOptions/UninstallOption/UninstallOption.pro index af9107145..424ca252f 100644 --- a/src/plugins/CommandLineOptions/UninstallOption/UninstallOption.pro +++ b/src/plugins/CommandLineOptions/UninstallOption/UninstallOption.pro @@ -5,10 +5,9 @@ plugin \ lib TARGET = $$PLUGINS_PREFIX/CommandLineOptions/uninstalloption -QMAKE_CLEAN = $$PLUGINS_PREFIX/CommandLineOptions/libuninstalloption.so TEMPLATE = lib -QMAKE_LIBDIR += ../../../../lib +QMAKE_LIBDIR += ../../../../bin TRANSLATIONS = translations/uninstall_plugin_cs.ts \ translations/uninstall_plugin_de.ts \ @@ -27,15 +26,10 @@ TRANSLATIONS = translations/uninstall_plugin_cs.ts \ translations/uninstall_plugin_sr_RS.ts RESOURCES = translations/translations.qrc -isEmpty(LIB_DIR){ - LIB_DIR = /lib -} -target.path = $$LIB_DIR/qmmp/CommandLineOptions -INSTALLS += target INCLUDEPATH += ../../../../src -LIBS += -lqmmpui -lqmmp +LIBS += -lqmmpui0 -lqmmp0 HEADERS += uninstalloption.h diff --git a/src/plugins/CommandLineOptions/UninstallOption/uninstalloption.cpp b/src/plugins/CommandLineOptions/UninstallOption/uninstalloption.cpp index 51cf15063..f34f8f1fd 100644 --- a/src/plugins/CommandLineOptions/UninstallOption/uninstalloption.cpp +++ b/src/plugins/CommandLineOptions/UninstallOption/uninstalloption.cpp @@ -21,7 +21,7 @@ #include <QtPlugin> #include <QTranslator> #include <QLocale> -#include <QMap> +#include <QApplication> #include <qmmpui/winfileassoc.h> #include <qmmp/metadatamanager.h> #include "uninstalloption.h" @@ -36,13 +36,14 @@ bool UninstallOption::identify(const QString &str) const const QString UninstallOption::helpString() const { QString help; - help += QString("--uninstall ") + tr("Restores the old file associations and cleans up the registry.") + help += QString("--uninstall ") + tr("Restores the old file associations and cleans up the registry") + "\n"; return help; } QString UninstallOption::executeCommand(const QString &opt_str, const QStringList &args) { + Q_UNUSED(args); if(opt_str == "--uninstall") { WinFileAssoc assoc; @@ -54,6 +55,7 @@ QString UninstallOption::executeCommand(const QString &opt_str, const QStringLis } assoc.GetRegisteredExtensions(extsToCheck, regExts); assoc.RestoreFileAssociations(regExts); + QMetaObject::invokeMethod(qApp, "quit", Qt::QueuedConnection); } return QString(); } |
