]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/treeviewcontextmenu.cpp
If we are sorting by rating, we won't apply the general rule: folders before regular...
[dolphin.git] / src / treeviewcontextmenu.cpp
index 96287d8d01f241edd6aec1451d3cedf2af1b1b90..ec6d322008b5e98e66f14e2f86e6fd16111cfdb4 100644 (file)
@@ -30,8 +30,8 @@
 
 #include "renamedialog.h"
 
-#include <QApplication>
-#include <QClipboard>
+#include <QtGui/QApplication>
+#include <QtGui/QClipboard>
 
 TreeViewContextMenu::TreeViewContextMenu(QWidget* parent,
                                          KFileItem* fileInfo) :
@@ -96,7 +96,7 @@ void TreeViewContextMenu::open()
 
     // insert 'Properties' entry
     QAction* propertiesAction = new QAction(i18n("Properties"), this);
-    connect(this, SIGNAL(triggered()), this, SLOT(showProperties()));
+    connect(propertiesAction, SIGNAL(triggered()), this, SLOT(showProperties()));
     popup->addAction(propertiesAction);
 
     popup->exec(QCursor::pos());
@@ -162,7 +162,8 @@ void TreeViewContextMenu::deleteItem()
 
 void TreeViewContextMenu::showProperties()
 {
-    new KPropertiesDialog(m_fileInfo->url());
+    KPropertiesDialog dialog(m_fileInfo->url());
+    dialog.exec();
 }
 
 #include "treeviewcontextmenu.moc"