mirror of
https://github.com/KDE/krfb
synced 2026-07-01 07:41:17 -07:00
TrayIcon: Use KAboutApplicationDialog
Rather than indirect via KHelpMenu. It is only created on the stack, and when it gets destroyed, the dialog would get destroyed, too, and not show at all.
This commit is contained in:
@@ -15,9 +15,9 @@
|
||||
#include <QMenu>
|
||||
|
||||
#include <KAboutApplicationDialog>
|
||||
#include <KAboutData>
|
||||
#include <KActionCollection>
|
||||
#include <QDialog>
|
||||
#include <KHelpMenu>
|
||||
#include <KLocalizedString>
|
||||
#include <KStandardAction>
|
||||
#include <KToggleAction>
|
||||
@@ -129,6 +129,7 @@ void TrayIcon::onClientDisconnected(RfbClient* client)
|
||||
|
||||
void TrayIcon::showAbout()
|
||||
{
|
||||
KHelpMenu menu;
|
||||
menu.aboutApplication();
|
||||
auto *dialog = new KAboutApplicationDialog(KAboutData::applicationData());
|
||||
dialog->setAttribute(Qt::WA_DeleteOnClose);
|
||||
dialog->show();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user