aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2011-09-30 18:31:14 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2011-09-30 18:31:14 +0000
commitdc13c73d60beda317a29d948919d213e01dcb325 (patch)
tree5c8dbcd720da9b4a83e3c10b912f68de982c1456 /src
parentf713b9f121f95756127c18c134c4cea7f2effb76 (diff)
downloadqmmp-dc13c73d60beda317a29d948919d213e01dcb325.tar.gz
qmmp-dc13c73d60beda317a29d948919d213e01dcb325.tar.bz2
qmmp-dc13c73d60beda317a29d948919d213e01dcb325.zip
fileops plugin: added default destination and file name pattern
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2361 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src')
-rw-r--r--src/plugins/General/fileops/settingsdialog.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/General/fileops/settingsdialog.cpp b/src/plugins/General/fileops/settingsdialog.cpp
index 090cd1e79..20fb7694c 100644
--- a/src/plugins/General/fileops/settingsdialog.cpp
+++ b/src/plugins/General/fileops/settingsdialog.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2009 by Ilya Kotov *
+ * Copyright (C) 2009-2011 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -24,6 +24,7 @@
#include <QMenu>
#include <QHeaderView>
#include <QApplication>
+#include <QDesktopServices>
#include <qmmp/qmmp.h>
#include <qmmpui/filedialog.h>
#include "fileops.h"
@@ -136,8 +137,8 @@ void SettingsDialog::createAction()
comboBox->setFocusPolicy (Qt::NoFocus);
ActionItem *item = new ActionItem(tr("New action"));
- //item->setPattern(settings.value(QString("pattern_%1").arg(i)).toString());
- //item->setDestination(settings.value(QString("destination_%1").arg(i)).toString());
+ item->setDestination(QDesktopServices::storageLocation(QDesktopServices::MusicLocation));
+ item->setPattern("%p - %t");
ui.tableWidget->setCellWidget (row, 0, checkBox);
ui.tableWidget->setCellWidget (row, 1, comboBox);