Commit a2dd36a5 authored by Wolfgang Bauer's avatar Wolfgang Bauer

Fix destination file dialog's mode flags

This is a QFileDialog in KF5, so the QFileDialog::* constants need to be
used.
In particular, KFile::File has the same value as
QFileDialog::ExistingFile, but it should also be possible to "select"
non-existing files.
parent 9e60c2e6
......@@ -97,7 +97,7 @@ void NewTransferDialog::setMultiple(bool useMultiple)
ui.urlLabel->setAlignment(alignment);
ui.urlRequester->setVisible(!m_multiple);
ui.listWidget->setVisible(m_multiple);
ui.destRequester->setMode(m_multiple ? KFile::Directory : KFile::File);
ui.destRequester->setMode(m_multiple ? QFileDialog::Directory : QFileDialog::AnyFile);
}
void NewTransferDialog::clear()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment