~ubuntu-branches/ubuntu/oneiric/arora/oneiric

« back to all changes in this revision

Viewing changes to src/bookmarks/bookmarkstoolbar.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Roderick B. Greening
  • Date: 2009-09-10 15:24:04 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20090910152404-668k22ux3mfap6g0
Tags: 0.9.0-0ubuntu1
* New upstream release
* Update patches:
  - kubuntu_02_default_bookmarks.diff
* Remove patches:
  - kubuntu_04_startpage_spacing.diff (fixed upstream)
  - kubuntu_05_manpages.diff (fixed upstream)
  - kubuntu_07_adblock.diff (unstable/unsuitable)

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
    connect(m_bookmarksModel, SIGNAL(rowsRemoved(const QModelIndex &, int, int)), this, SLOT(build()));
48
48
    connect(m_bookmarksModel, SIGNAL(dataChanged(const QModelIndex &, const QModelIndex &)), this, SLOT(build()));
49
49
    setAcceptDrops(true);
 
50
    setHidden(true);
50
51
}
51
52
 
52
53
QModelIndex BookmarksToolBar::index(QAction *action)
175
176
        QAction *action = actionAt(event->pos());
176
177
        QModelIndex index = this->index(action);
177
178
 
178
 
        if (action && action->menu() && index.isValid())
179
 
            parentIndex = index;
 
179
        if (action && action->menu()) {
 
180
            if (action->menu()->isAncestorOf(event->source()))
 
181
                return;
 
182
            if (index.isValid())
 
183
                parentIndex = index;
 
184
        }
180
185
 
181
186
        BookmarkNode *node = new BookmarkNode(BookmarkNode::Bookmark);
182
187
        node->url = QString::fromUtf8(url.toEncoded());