mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Merge unsigned commits
This commit is contained in:
commit
357ab11f92
|
@ -99,33 +99,6 @@ SystemTrayIcon::SystemTrayIcon()
|
||||||
|
|
||||||
SystemTrayIcon::~SystemTrayIcon()
|
SystemTrayIcon::~SystemTrayIcon()
|
||||||
{
|
{
|
||||||
// only delete the used backend
|
|
||||||
switch(backendType)
|
|
||||||
{
|
|
||||||
case SystrayBackendType::Qt:
|
|
||||||
delete qtIcon;
|
|
||||||
break;
|
|
||||||
#ifdef ENABLE_SYSTRAY_UNITY_BACKEND
|
|
||||||
case SystrayBackendType::Unity:
|
|
||||||
delete unityIndicator;
|
|
||||||
delete unityMenu;
|
|
||||||
break;
|
|
||||||
#endif
|
|
||||||
#ifdef ENABLE_SYSTRAY_STATUSNOTIFIER_BACKEND
|
|
||||||
case SystrayBackendType::StatusNotifier:
|
|
||||||
delete statusNotifier;
|
|
||||||
delete snMenu;
|
|
||||||
break;
|
|
||||||
#endif
|
|
||||||
#ifdef ENABLE_SYSTRAY_GTK_BACKEND
|
|
||||||
case SystrayBackendType::GTK:
|
|
||||||
delete gtkIcon;
|
|
||||||
delete gtkMenu;
|
|
||||||
break;
|
|
||||||
#endif
|
|
||||||
default:
|
|
||||||
qWarning() << "Unknown Systray Backend Type";
|
|
||||||
}
|
|
||||||
qDebug() << "Deleting SystemTrayIcon";
|
qDebug() << "Deleting SystemTrayIcon";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -482,10 +482,7 @@ Widget::~Widget()
|
||||||
Translator::unregister(this);
|
Translator::unregister(this);
|
||||||
AutoUpdater::abortUpdates();
|
AutoUpdater::abortUpdates();
|
||||||
if (icon)
|
if (icon)
|
||||||
{
|
|
||||||
icon->hide();
|
icon->hide();
|
||||||
delete icon;
|
|
||||||
}
|
|
||||||
|
|
||||||
delete profileForm;
|
delete profileForm;
|
||||||
delete settingsWidget;
|
delete settingsWidget;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user