From eaa0ff560b273d785d8f7524bc3ddc597ba14d96 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 19 Jun 2007 18:58:30 +0000 Subject: when requesting a context menu provide a URL for the viewport, because in the column view this URL can differ from the navigator URL svn path=/trunk/KDE/kdebase/apps/; revision=677704 --- src/dolphinview.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/dolphinview.h') diff --git a/src/dolphinview.h b/src/dolphinview.h index 1a240be7a..0d8ffea19 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -413,9 +413,12 @@ private slots: /** * Opens the context menu on position \a pos. The position * is used to check whether the context menu is related to an - * item or to the viewport. + * item or to the viewport. If the context menu should be + * opened on the viewport, the URL \a url should be taken + * as viewport URL (the viewport URL can be different from + * DolphinView::url() for e. g. the column view). */ - void openContextMenu(const QPoint& pos); + void openContextMenu(const QPoint& pos, const KUrl& url); /** * Drops the URLs \a urls to the index \a index. \a source -- cgit v1.3