Skip to content

Commit

Permalink
DownloadItem::getFileName(): Pass a NOP filter to QFileDialog::getSav…
Browse files Browse the repository at this point in the history
…eFileName() as it seems to prevent occasional bogus trailing dots
  • Loading branch information
datadiode committed Jan 31, 2023
1 parent d32d9f9 commit 936d0f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/downloadmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ void DownloadItem::getFileName()
QString fileName = defaultFileName;
if (m_requestFileName) {
m_gettingFileName = true;
fileName = QFileDialog::getSaveFileName(this, tr("Save File"), defaultFileName);
fileName = QFileDialog::getSaveFileName(this, tr("Save File"), defaultFileName, tr("All files (*.*)"));
m_gettingFileName = false;
if (fileName.isEmpty()) {
progressBar->setVisible(false);
Expand Down

0 comments on commit 936d0f7

Please sign in to comment.