[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/kio/misc
From:       David Faure <faure () kde ! org>
Date:       2004-06-15 11:55:09
Message-ID: 20040615115509.E949899E9 () office ! kde ! org
[Download RAW message or body]

CVS commit by faure: 

Select the item on which we right-clicked, so that "Cancel" is enabled.


  M +3 -1      uiserver.cpp   1.113


--- kdelibs/kio/misc/uiserver.cpp  #1.112:1.113
@@ -669,5 +669,5 @@ void UIServer::applySettings()
 }
 
-void UIServer::slotShowContextMenu(KListView*, QListViewItem* /*item*/, const QPoint& pos)
+void UIServer::slotShowContextMenu(KListView*, QListViewItem* item, const QPoint& pos)
 {
    if (m_contextMenu==0)
@@ -679,4 +679,6 @@ void UIServer::slotShowContextMenu(KList
       m_contextMenu->insertItem(i18n("Settings..."), this, SLOT(slotConfigure()));
    }
+   if ( item )
+       item->setSelected( true );
    bool enabled = false;
    QListViewItemIterator it( listProgress );


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic