diff --git a/retroshare-gui/src/gui/ShareManager.cpp b/retroshare-gui/src/gui/ShareManager.cpp index 9c4e1f95d..68bd52e52 100644 --- a/retroshare-gui/src/gui/ShareManager.cpp +++ b/retroshare-gui/src/gui/ShareManager.cpp @@ -289,6 +289,6 @@ void ShareManager::showEvent(QShowEvent *event) void ShareManager::showShareDialog() { - static ShareDialog *sharedlg = new ShareDialog(this); - sharedlg->show(); + ShareDialog sharedlg (this); + sharedlg.exec(); }