make "All Files" file filter in file dialog actually display all files rather then just those with a dot in their name
authorsheepluva
Sun, 11 Sep 2011 15:38:45 +0200
changeset 5850 f07e2a5e6ad0
parent 5849 b84b41aba275
child 5851 e6151aca2d7c
make "All Files" file filter in file dialog actually display all files rather then just those with a dot in their name
QTfrontend/pagedrawmap.cpp
--- a/QTfrontend/pagedrawmap.cpp	Sun Sep 11 15:18:46 2011 +0200
+++ b/QTfrontend/pagedrawmap.cpp	Sun Sep 11 15:38:45 2011 +0200
@@ -45,7 +45,7 @@
 
 void PageDrawMap::load()
 {
-    QString fileName = QFileDialog::getOpenFileName(NULL, tr("Load drawn map"), ".", tr("Drawn Maps (*.hwmap);;All files (*.*)"));
+    QString fileName = QFileDialog::getOpenFileName(NULL, tr("Load drawn map"), ".", tr("Drawn Maps (*.hwmap);;All files (*)"));
 
     if(!fileName.isEmpty())
         drawMapWidget->load(fileName);
@@ -53,7 +53,7 @@
 
 void PageDrawMap::save()
 {
-    QString fileName = QFileDialog::getSaveFileName(NULL, tr("Save drawn map"), ".", tr("Drawn Maps (*.hwmap);;All files (*.*)"));
+    QString fileName = QFileDialog::getSaveFileName(NULL, tr("Save drawn map"), ".", tr("Drawn Maps (*.hwmap)"));
 
     if(!fileName.isEmpty())
         drawMapWidget->save(fileName);