summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Bauer <[email protected]>2017-12-07 22:00:03 +0100
committerWolfgang Bauer <[email protected]>2017-12-07 22:00:03 +0100
commitd6197e6a3b248af4def5c2f2d3396382499e6d93 (patch)
treea651c846110d5d8c23379bc4cb5d75dd99e2a19e
parent2067821d7ffe5078a978430d17d307cc9cbf1290 (diff)
Revert "Fix destination file dialog's mode flags"v17.12.0
This reverts commit a2dd36a5b6e546578054b15f6bc9367a99d78dbe. KUrlRequester::setMode() actually does expect KFile::Modes as argument, and that commit broke the build.
-rw-r--r--ui/newtransferdialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/newtransferdialog.cpp b/ui/newtransferdialog.cpp
index caa8ea4..c055f31 100644
--- a/ui/newtransferdialog.cpp
+++ b/ui/newtransferdialog.cpp
@@ -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 ? QFileDialog::Directory : QFileDialog::AnyFile);
+ ui.destRequester->setMode(m_multiple ? KFile::Directory : KFile::File);
}
void NewTransferDialog::clear()