summaryrefslogtreecommitdiff
path: root/src/urlbar/resourcelinkdialog.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-12-28 16:50:41 +0100
committerAndrea Diamantini <adjam7@gmail.com>2012-12-28 16:50:41 +0100
commitfaa7f72c417b4ccd9b794b32b988312186d62e59 (patch)
tree19a4db56f1526e073ce87a0c05a0923d5a6e442f /src/urlbar/resourcelinkdialog.cpp
parentSVN_SILENT made messages (.desktop file) (diff)
downloadrekonq-faa7f72c417b4ccd9b794b32b988312186d62e59.tar.xz
Krazy Fixes, first shot
Diffstat (limited to 'src/urlbar/resourcelinkdialog.cpp')
-rw-r--r--src/urlbar/resourcelinkdialog.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/urlbar/resourcelinkdialog.cpp b/src/urlbar/resourcelinkdialog.cpp
index 8a4b5685..b300c8ec 100644
--- a/src/urlbar/resourcelinkdialog.cpp
+++ b/src/urlbar/resourcelinkdialog.cpp
@@ -234,10 +234,12 @@ void Nepomuk::ResourceLinkDialog::showContextMenu(const QPoint &pos)
void Nepomuk::ResourceLinkDialog::createNewResourceSlot()
{
- Nepomuk::NewResourceDialog newResource(d->m_resourceSelect->currentIndex(), d->m_nfoResource);
- //close();
- newResource.exec();
+ QPointer<Nepomuk::NewResourceDialog> r = new Nepomuk::NewResourceDialog(d->m_resourceSelect->currentIndex(), d->m_nfoResource);
+ r->exec();
+
setRelatedResources();
+
+ r->deleteLater();
}