Skip to content
Permalink
Browse files

Fixed to set the current directory path when creating a new bookmark.…

…(refs #79)
  • Loading branch information...
haraki committed Jun 19, 2019
1 parent 345bdc5 commit addcb7c8da7b0f249c7a8cf938294427497a508a
Showing with 8 additions and 1 deletion.
  1. +8 −1 bookmarkeditdialog.cpp
@@ -20,7 +20,14 @@ BookmarkEditDialog::BookmarkEditDialog(const QString& currentDirPath, const Book
ui->selectPathToolButton->setIcon(QApplication::style()->standardIcon(QStyle::SP_FileDialogStart));

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();
}

0 comments on commit addcb7c

Please sign in to comment.
You can’t perform that action at this time.