Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change globs to see truly all files

  • Loading branch information...
commit f5865cc5760231fd4d4674473bc7ad9fc9375471 1 parent b43bbdb
@singpolyma authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 wedit.cpp
View
4 wedit.cpp
@@ -110,7 +110,7 @@ void WEdit::saveAs() {
QString documentsPath = QDir::homePath();
if(QDir(QDir::homePath() + QDir::separator() + tr("Documents") + QDir::separator()).exists()) documentsPath = QDir::homePath() + QDir::separator() + tr("Documents") + QDir::separator();
if(QDir(QDir::homePath() + QDir::separator() + tr("My Documents") + QDir::separator()).exists()) documentsPath = QDir::homePath() + QDir::separator() + tr("My Documents") + QDir::separator();
- QString fileName = QFileDialog::getSaveFileName(this, tr("Save as..."), documentsPath, tr("All Files (*.*)"));
+ QString fileName = QFileDialog::getSaveFileName(this, tr("Save as..."), documentsPath, tr("All Files (*)"));
save(fileName);
}
@@ -118,7 +118,7 @@ void WEdit::load() {
QString documentsPath = QDir::homePath();
if(QDir(QDir::homePath() + QDir::separator() + tr("Documents") + QDir::separator()).exists()) documentsPath = QDir::homePath() + QDir::separator() + tr("Documents") + QDir::separator();
if(QDir(QDir::homePath() + QDir::separator() + tr("My Documents") + QDir::separator()).exists()) documentsPath = QDir::homePath() + QDir::separator() + tr("My Documents") + QDir::separator();
- QString fileName = QFileDialog::getOpenFileName(this, tr("Load..."), documentsPath, tr("All Files (*.*)"));
+ QString fileName = QFileDialog::getOpenFileName(this, tr("Load..."), documentsPath, tr("All Files (*)"));
load(fileName);
}
Please sign in to comment.
Something went wrong with that request. Please try again.