Permalink
Browse files

Change globs to see truly all files

  • Loading branch information...
1 parent b43bbdb commit f5865cc5760231fd4d4674473bc7ad9fc9375471 @singpolyma committed Aug 8, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 wedit.cpp
View
@@ -110,15 +110,15 @@ 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);
}
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);
}

0 comments on commit f5865cc

Please sign in to comment.