mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 16:20:52 +01:00
fix memory leak
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3315 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -132,6 +132,7 @@ QETApp::QETApp(int &argc, char **argv) :
|
||||
QETApp::~QETApp() {
|
||||
elements_recent_files_ -> save();
|
||||
projects_recent_files_ -> save();
|
||||
delete splash_screen_;
|
||||
delete elements_recent_files_;
|
||||
delete projects_recent_files_;
|
||||
if (about_dialog_) {
|
||||
@@ -1344,7 +1345,7 @@ void QETApp::parseArguments() {
|
||||
*/
|
||||
void QETApp::initSplashScreen() {
|
||||
if (non_interactive_execution_) return;
|
||||
splash_screen_ = new QSplashScreen(QPixmap(":/ico/splash.png"));
|
||||
splash_screen_ = new QSplashScreen(QPixmap(":/ico/splash.png"), Qt::WindowStaysOnTopHint);
|
||||
splash_screen_ -> show();
|
||||
setSplashScreenStep(tr("Chargement...", "splash screen caption"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user