From 83c8bda5424c9a55cf6a8e7fb8adc7dbdfb8a0ef Mon Sep 17 00:00:00 2001 From: Arno Date: Wed, 27 Dec 2017 10:12:05 +0100 Subject: 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 --- configurationdialog.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'configurationdialog.cpp') 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 -- cgit v1.2.3-70-g09d2