Commit b55c0fb6 authored by Ragnar Thomsen's avatar Ragnar Thomsen
Browse files

Sort the filters in the new archive dialog

parent 98436ef4
...@@ -296,6 +296,9 @@ void MainWindow::newArchive() ...@@ -296,6 +296,9 @@ void MainWindow::newArchive()
QFileDialog dlg(this); QFileDialog dlg(this);
dlg.setMimeTypeFilters(mimeTypes); dlg.setMimeTypeFilters(mimeTypes);
QStringList filters = dlg.nameFilters();
dlg.setFileMode(QFileDialog::AnyFile); dlg.setFileMode(QFileDialog::AnyFile);
dlg.setAcceptMode(QFileDialog::AcceptSave); dlg.setAcceptMode(QFileDialog::AcceptSave);
if (dlg.exec() == QDialog::Accepted) { if (dlg.exec() == QDialog::Accepted) {
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