Skip to content

Commit

Permalink
Fix Crash in MainWindow UI - Browse Button
Browse files Browse the repository at this point in the history
Fix crash upon clicking "Browse"-button in MainWindow..
  • Loading branch information
johanneszab committed May 1, 2015
1 parent f9aef93 commit c42713c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion podhd_qt/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1417,7 +1417,9 @@ void MainWindow::changePage400() {

void MainWindow::getPath() {

QString path = QFileDialog::getExistingDirectory(this, tr("%1").arg(path), presetDirectory.path(), QFileDialog::ShowDirsOnly);
QString path;

path = QFileDialog::getExistingDirectory(this, tr("Select Directory with Preset Files"), presetDirectory.path(), QFileDialog::ShowDirsOnly);
if ( path.isNull() == false )
{
presetDirectory.setPath(path);
Expand Down

0 comments on commit c42713c

Please sign in to comment.