fixed removal of "share on channel"/"share on forum" menu entries in own files

This commit is contained in:
csoler 2018-10-04 18:49:27 +02:00
parent 9c493453cc
commit 6c4d1c34e3
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C

View File

@ -1146,10 +1146,12 @@ void LocalSharedFilesDialog::spawnCustomPopupMenu( QPoint point )
return ;
}
QMenu shareChannelMenu(tr("Share on channel...")) ; // added here because the shareChannelMenu QMenu object is deleted afterwards
QMenu shareForumMenu(tr("Share on forum...")) ; // added here because the shareChannelMenu QMenu object is deleted afterwards
if(type != DIR_TYPE_EXTRA_FILE)
{
GxsChannelDialog *channelDialog = dynamic_cast<GxsChannelDialog*>(MainWindow::getPage(MainWindow::Channels));
QMenu shareChannelMenu(tr("Share on channel...")) ; // added here because the shareChannelMenu QMenu object is deleted afterwards
if(channelDialog != NULL)
{
@ -1173,7 +1175,6 @@ void LocalSharedFilesDialog::spawnCustomPopupMenu( QPoint point )
}
GxsForumsDialog *forumsDialog = dynamic_cast<GxsForumsDialog*>(MainWindow::getPage(MainWindow::Forums));
QMenu shareForumMenu(tr("Share on forum...")) ; // added here because the shareChannelMenu QMenu object is deleted afterwards
if(forumsDialog != NULL)
{