File tree Expand file tree Collapse file tree 1 file changed +21
-6
lines changed Expand file tree Collapse file tree 1 file changed +21
-6
lines changed Original file line number Diff line number Diff line change @@ -1062,8 +1062,12 @@ void MegaApplication::rebootApplication(bool update)
1062
1062
trayIcon->hide ();
1063
1063
closeDialogs ();
1064
1064
1065
+ #ifdef __APPLE__
1065
1066
cleanAll ();
1066
1067
::exit (0 );
1068
+ #endif
1069
+
1070
+ QApplication::exit ();
1067
1071
}
1068
1072
1069
1073
void MegaApplication::exitApplication ()
@@ -1076,9 +1080,12 @@ void MegaApplication::exitApplication()
1076
1080
trayIcon->hide ();
1077
1081
closeDialogs ();
1078
1082
1079
- cleanAll ();
1080
- ::exit (0 );
1083
+ #ifdef __APPLE__
1084
+ cleanAll ();
1085
+ ::exit (0 );
1086
+ #endif
1081
1087
1088
+ QApplication::exit ();
1082
1089
return ;
1083
1090
#ifndef __APPLE__
1084
1091
}
@@ -1102,8 +1109,12 @@ void MegaApplication::exitApplication()
1102
1109
trayIcon->hide ();
1103
1110
closeDialogs ();
1104
1111
1105
- cleanAll ();
1106
- ::exit (0 );
1112
+ #ifdef __APPLE__
1113
+ cleanAll ();
1114
+ ::exit (0 );
1115
+ #endif
1116
+
1117
+ QApplication::exit ();
1107
1118
}
1108
1119
}
1109
1120
else
@@ -1567,8 +1578,12 @@ void MegaApplication::setupWizardFinished()
1567
1578
{
1568
1579
if (!preferences->logged ())
1569
1580
{
1570
- cleanAll ();
1571
- ::exit (0 );
1581
+ #ifdef __APPLE__
1582
+ cleanAll ();
1583
+ ::exit (0 );
1584
+ #endif
1585
+
1586
+ QApplication::exit ();
1572
1587
return ;
1573
1588
}
1574
1589
You can’t perform that action at this time.
0 commit comments