aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2014-03-12 14:47:41 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2014-03-12 14:47:41 +0000
commit4bdeafab8e4f072193e84808a5e197b5686f877e (patch)
tree19dc605f793c154c773058b307ff0854fda9a46b /src
parent532ad84642b023d4d71d87074db8043a6e342ee0 (diff)
downloadqmmp-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')
-rw-r--r--src/plugins/CommandLineOptions/CommandLineOptions.pro8
-rw-r--r--src/plugins/CommandLineOptions/UninstallOption/UninstallOption.pro10
-rw-r--r--src/plugins/CommandLineOptions/UninstallOption/uninstalloption.cpp6
-rw-r--r--src/plugins/plugins.pro9
4 files changed, 15 insertions, 18 deletions
diff --git a/src/plugins/CommandLineOptions/CommandLineOptions.pro b/src/plugins/CommandLineOptions/CommandLineOptions.pro
index 393079a96..9a0950ee4 100644
--- a/src/plugins/CommandLineOptions/CommandLineOptions.pro
+++ b/src/plugins/CommandLineOptions/CommandLineOptions.pro
@@ -1,7 +1,7 @@
TEMPLATE = subdirs
-SUBDIRS = IncDecVolumeOption \
- SeekOption \
- StatusOption \
- PlayListOption
+unix:SUBDIRS = IncDecVolumeOption \
+ SeekOption \
+ StatusOption \
+ PlayListOption
win32:SUBDIRS += UninstallOption
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();
}
diff --git a/src/plugins/plugins.pro b/src/plugins/plugins.pro
index facdc240c..5059e0fa7 100644
--- a/src/plugins/plugins.pro
+++ b/src/plugins/plugins.pro
@@ -1,3 +1,5 @@
+TEMPLATE = subdirs
+
SUBDIRS += Input \
Output \
General \
@@ -6,9 +8,8 @@ SUBDIRS += Input \
Effect \
PlayListFormats \
FileDialogs \
- Ui
+ Ui \
+ CommandLineOptions
+unix:SUBDIRS += Engines
-unix:SUBDIRS += CommandLineOptions \
- Engines
-TEMPLATE = subdirs