diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-08-11 00:17:29 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-08-11 00:17:29 +0200 |
commit | 950f88fc0d4fea8702167b1b1ae4bc387b8d0821 (patch) | |
tree | 510ea5867589da5414367afa9e687354a0977c3a /src/bookmarks/bookmarkcontextmenu.cpp | |
parent | Merge commit 'refs/merge-requests/160' of git://gitorious.org/rekonq/mainline... (diff) | |
parent | - Fix bookmarks' text which is truncated in some places (new tab page, some d... (diff) | |
download | rekonq-950f88fc0d4fea8702167b1b1ae4bc387b8d0821.tar.xz |
Merge commit 'refs/merge-requests/161' of git://gitorious.org/rekonq/mainline into m161
Diffstat (limited to 'src/bookmarks/bookmarkcontextmenu.cpp')
-rw-r--r-- | src/bookmarks/bookmarkcontextmenu.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bookmarks/bookmarkcontextmenu.cpp b/src/bookmarks/bookmarkcontextmenu.cpp index e731d982..96668003 100644 --- a/src/bookmarks/bookmarkcontextmenu.cpp +++ b/src/bookmarks/bookmarkcontextmenu.cpp @@ -214,7 +214,7 @@ void BookmarkContextMenu::deleteBookmark() KBookmark bm = bookmark(); KBookmarkGroup bmg = bm.parentGroup(); bool folder = bm.isGroup(); - QString name = QString(bm.text()).replace("&&", "&"); + QString name = QString(bm.fullText()).replace("&&", "&"); if (KMessageBox::warningContinueCancel( QApplication::activeWindow(), @@ -237,10 +237,10 @@ void BookmarkContextMenu::deleteBookmark() void BookmarkContextMenu::editBookmark() { KBookmark selected = bookmark(); - selected.setFullText(selected.text().replace("&&", "&")); + selected.setFullText(selected.fullText().replace("&&", "&")); KBookmarkDialog *dialog = owner()->bookmarkDialog(manager(), QApplication::activeWindow()); dialog->editBookmark(selected); - selected.setFullText(selected.text().replace('&', "&&")); + selected.setFullText(selected.fullText().replace('&', "&&")); delete dialog; } @@ -322,13 +322,13 @@ void BookmarkContextMenu::bookmarkCurrentPage() if (selected.isGroup()) parent = selected.toGroup(); - KBookmark newBk = parent.addBookmark(owner()->currentTitle().replace('&', "&&"), KUrl(owner()->currentUrl()), "text-html"); + KBookmark newBk = parent.addBookmark(owner()->currentTitle().replace('&', "&&"), KUrl(owner()->currentUrl())); parent.moveBookmark(newBk, selected.parentGroup().previous(selected)); } else { - parent.addBookmark(owner()->currentTitle(), KUrl(owner()->currentUrl()), "text-html"); + parent.addBookmark(owner()->currentTitle(), KUrl(owner()->currentUrl())); } manager()->emitChanged(parent); |