Commit dff9a4c9 authored by Alexander Volkov's avatar Alexander Volkov
Browse files

Assistant: Make "Bookmarks Menu" the default bookmarks folder


Assistant doesn't show the bookmarks toolbar by default so it's more
reasonable to preselect the "Bookmarks Menu" folder when a user adds
a bookmark.

Change-Id: If1b92c1decb280e96e5c58a56d6948eec6e44813
Reviewed-by: default avatarKarsten Heimrich <karsten.heimrich@digia.com>
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@digia.com>
parent a5de067d
No related merge requests found
Showing with 1 addition and 2 deletions
...@@ -84,8 +84,7 @@ BookmarkDialog::BookmarkDialog(BookmarkModel *sourceModel, const QString &title, ...@@ -84,8 +84,7 @@ BookmarkDialog::BookmarkDialog(BookmarkModel *sourceModel, const QString &title,
connect(ui.treeView->selectionModel(), SIGNAL(currentChanged(QModelIndex, connect(ui.treeView->selectionModel(), SIGNAL(currentChanged(QModelIndex,
QModelIndex)), this, SLOT(currentIndexChanged(QModelIndex))); QModelIndex)), this, SLOT(currentIndexChanged(QModelIndex)));
ui.bookmarkFolders->setCurrentIndex(0); ui.bookmarkFolders->setCurrentIndex(ui.bookmarkFolders->count() > 1 ? 1 : 0);
ui.treeView->setCurrentIndex(ui.treeView->indexAt(QPoint(2, 2)));
const HelpEngineWrapper &helpEngine = HelpEngineWrapper::instance(); const HelpEngineWrapper &helpEngine = HelpEngineWrapper::instance();
if (helpEngine.usesAppFont()) if (helpEngine.usesAppFont())
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment