diff options
author | Arno <arno@disconnect.de> | 2017-12-27 10:12:05 +0100 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2017-12-27 10:12:05 +0100 |
commit | 83c8bda5424c9a55cf6a8e7fb8adc7dbdfb8a0ef (patch) | |
tree | d21da1d2d444dd6e53bed42352402cf3e19771cb /configurationdialog.cpp | |
parent | 887767fe22814301aa73a0d0c589a59d65897124 (diff) | |
download | SheMov-83c8bda5424c9a55cf6a8e7fb8adc7dbdfb8a0ef.tar.gz SheMov-83c8bda5424c9a55cf6a8e7fb8adc7dbdfb8a0ef.tar.bz2 SheMov-83c8bda5424c9a55cf6a8e7fb8adc7dbdfb8a0ef.zip |
Make unpack directory configurable
Add option and use it. Warn if the directory is not accessible and bail
out. Initialize mFilesCtr to 0 so we don't crash if it's < 0
Diffstat (limited to 'configurationdialog.cpp')
-rw-r--r-- | configurationdialog.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configurationdialog.cpp b/configurationdialog.cpp index 7e357f4..5f4f2c2 100644 --- a/configurationdialog.cpp +++ b/configurationdialog.cpp @@ -69,6 +69,9 @@ ConfigurationDialog::ConfigurationDialog(QWidget *parent, Qt::WindowFlags f) : S mCoverPath = new QLineEdit; mCoverPath->setCompleter(fsCompleter); pathL->addRow(tr("Cover directory"), mCoverPath); + mUnpackPath = new QLineEdit; + mUnpackPath->setCompleter(fsCompleter); + pathL->addRow(tr("Unpack directory"), mUnpackPath); pathBox->setLayout(pathL); QVBoxLayout *pathLayout = new QVBoxLayout; pathLayout->addWidget(pathBox); @@ -464,6 +467,7 @@ void ConfigurationDialog::readSettings(){ mFfMpegPath->setText(s.value("paths/ffmpeg").toString()); mDvdMountPath->setText(s.value("paths/dvdmount").toString()); mCoverPath->setText(s.value("paths/coverpath").toString()); + mUnpackPath->setText(s.value("paths/unpackpath").toString()); mExpensive->setChecked(s.value("ui/expensiveops", true).toBool()); //read pictures @@ -526,6 +530,7 @@ void ConfigurationDialog::writeSettings(){ s.setValue("paths/dvdmount", mDvdMountPath->text()); } s.setValue("paths/coverpath", mCoverPath->text()); + s.setValue("paths/unpackpath", mUnpackPath->text()); s.setValue("ui/expensiveops", (mExpensive->checkState() == Qt::Checked)); //write icons |