diff options
Diffstat (limited to 'mainwindow.cpp')
| -rw-r--r-- | mainwindow.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp index cff736c..2fbd295 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -105,7 +105,11 @@ void MainWindow::on_pushButtonOpenFile_clicked() QString fielname = QFileDialog::getOpenFileName(this, tr("Datei Öffnen"), QDir::homePath(), tr("Alle Datein")); - ui->lineEditFilePath->setText(fielname); + + if (!fielname.isEmpty()) + { + ui->lineEditFilePath->setText(fielname); + } } |
