// 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());
void TreeViewContextMenu::showProperties()
{
- new KPropertiesDialog(m_fileInfo->url());
+ KPropertiesDialog dialog(m_fileInfo->url());
+ dialog.exec();
}
#include "treeviewcontextmenu.moc"