Skip to content

Commit

Permalink
Correct missing tr() in dialog & fix favorites/shortcuts with saved s…
Browse files Browse the repository at this point in the history
…earches not working.
  • Loading branch information
baumgarr committed Mar 21, 2017
1 parent 37982a5 commit 5353555
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dialog/accountmaintenancedialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ AccountMaintenanceDialog::AccountMaintenanceDialog(NMainMenuBar *menubar, QWidge
addButton = new QPushButton(tr("Add"),this);
renameButton = new QPushButton(tr("Rename"));
deleteButton = new QPushButton(tr("Delete"));
removeAuthButton = new QPushButton("Remove Authorization");
removeAuthButton = new QPushButton(tr("Remove Authorization"));
nameList = new QListWidget(this);
buttonLayout1 = new QVBoxLayout();
buttonLayout2 = new QHBoxLayout();
Expand Down
8 changes: 8 additions & 0 deletions gui/favoritesview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,14 @@ void FavoritesView::buildSelection() {
if (item->record.type == FavoritesRecord::Note) {
newFilter->setLid(item->record.target.toInt());
}
if (item->record.type == FavoritesRecord::Search) {
SavedSearch search;
SearchTable table(global.db);
QLOG_DEBUG() << item->record.target.toInt();
table.get(search, item->record.target.toInt());
if (search.query.isSet())
newFilter->setSearchString(search.query);
}
}
}

Expand Down

0 comments on commit 5353555

Please sign in to comment.