diff options
author | Yoann Laissus <yoann.laissus@gmail.com> | 2010-03-27 19:04:11 +0100 |
---|---|---|
committer | Yoann Laissus <yoann.laissus@gmail.com> | 2010-03-27 19:04:11 +0100 |
commit | 632389517ca496031bb1cbe468d904884961bf57 (patch) | |
tree | f0be57644d5ceea2bd38c4f7aea8f1808ee9ba78 /src/urltreeview.cpp | |
parent | Add tests for the bookmark before toGroup() (diff) | |
download | rekonq-632389517ca496031bb1cbe468d904884961bf57.tar.xz |
- Fix a crash when the cancel button of the add bookmark menu is clicked
- Use the same behaviour for delete bookmark as the toolbar
- Some strings changed
- Keep the selection of a folder when it's expanded/collapsed
- Fix the name of some methods and properties
- Code cleaned a bit
Diffstat (limited to 'src/urltreeview.cpp')
-rw-r--r-- | src/urltreeview.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/urltreeview.cpp b/src/urltreeview.cpp index b88dc971..507a7973 100644 --- a/src/urltreeview.cpp +++ b/src/urltreeview.cpp @@ -74,7 +74,7 @@ void UrlTreeView::mousePressEvent(QMouseEvent *event) if(event->button() == Qt::RightButton) { - if(index.model()->rowCount(index) == 0) + if(model()->rowCount(index) == 0) { // An empty group needs to be handle by the panels emit contextMenuItemRequested(event->pos()); @@ -100,7 +100,7 @@ void UrlTreeView::mouseReleaseEvent(QMouseEvent *event) else if(event->button() == Qt::LeftButton) { - if(index.model()->rowCount(index) == 0) + if(model()->rowCount(index) == 0) validOpenUrl(qVariantValue< KUrl >(index.data(Qt::UserRole))); else setExpanded(index, !isExpanded(index)); @@ -118,7 +118,7 @@ void UrlTreeView::keyPressEvent(QKeyEvent *event) if(event->key() == Qt::Key_Return) { - if(index.model()->rowCount(index) == 0) + if(model()->rowCount(index) == 0) validOpenUrl(qVariantValue< KUrl >(index.data(Qt::UserRole))); else setExpanded(index, !isExpanded(index)); |