Skip to content

Commit

Permalink
Fixed to set the current directory path when creating a new bookmark.…
Browse files Browse the repository at this point in the history
…(refs #79)
  • Loading branch information
haraki committed Jun 19, 2019
1 parent 345bdc5 commit addcb7c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bookmarkeditdialog.cpp
Expand Up @@ -20,7 +20,14 @@ BookmarkEditDialog::BookmarkEditDialog(const QString& currentDirPath, const Book
ui->selectPathToolButton->setIcon(QApplication::style()->standardIcon(QStyle::SP_FileDialogStart)); ui->selectPathToolButton->setIcon(QApplication::style()->standardIcon(QStyle::SP_FileDialogStart));


ui->nameLineEdit->setText(info.getName()); ui->nameLineEdit->setText(info.getName());
ui->pathLineEdit->setText(info.getPath()); if(info.getPath().isEmpty())
{
ui->pathLineEdit->setText(currentDirPath);
}
else
{
ui->pathLineEdit->setText(info.getPath());
}


checkNamePathEmpty(); checkNamePathEmpty();
} }
Expand Down

0 comments on commit addcb7c

Please sign in to comment.