diff options
| author | Peter Penz <[email protected]> | 2007-06-20 20:48:36 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-06-20 20:48:36 +0000 |
| commit | 15f50df9f6944bee79d5f81c8ccfc7bc206d9d99 (patch) | |
| tree | bc1a7313f6ef5062422501f83f82fd879fa1c60a /src/dolphinview.cpp | |
| parent | cd780167c3921d3803d60f58564d2446325dd599 (diff) | |
don't pass a custom viewport URL to the context menu anymore, as this cannot work together with the menu actions
svn path=/trunk/KDE/kdebase/apps/; revision=678175
Diffstat (limited to 'src/dolphinview.cpp')
| -rw-r--r-- | src/dolphinview.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp index eb702393a..4964010c5 100644 --- a/src/dolphinview.cpp +++ b/src/dolphinview.cpp @@ -89,8 +89,8 @@ DolphinView::DolphinView(QWidget* parent, m_controller = new DolphinController(this); m_controller->setUrl(url); - connect(m_controller, SIGNAL(requestContextMenu(const QPoint&, const KUrl&)), - this, SLOT(openContextMenu(const QPoint&, const KUrl&))); + connect(m_controller, SIGNAL(requestContextMenu(const QPoint&)), + this, SLOT(openContextMenu(const QPoint&))); connect(m_controller, SIGNAL(urlsDropped(const KUrl::List&, const QModelIndex&, QWidget*)), this, SLOT(dropUrls(const KUrl::List&, const QModelIndex&, QWidget*))); connect(m_controller, SIGNAL(sortingChanged(DolphinView::Sorting)), @@ -698,7 +698,7 @@ void DolphinView::changeSelection(const KFileItemList& selection) | QItemSelectionModel::Current); } -void DolphinView::openContextMenu(const QPoint& pos, const KUrl& url) +void DolphinView::openContextMenu(const QPoint& pos) { KFileItem* item = 0; @@ -707,7 +707,7 @@ void DolphinView::openContextMenu(const QPoint& pos, const KUrl& url) item = fileItem(index); } - emit requestContextMenu(item, url); + emit requestContextMenu(item, url()); } void DolphinView::dropUrls(const KUrl::List& urls, |
