comparison src/main.cpp @ 134:478ce4c94f6b

Commit and close() the database at exit, just in case.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 23 Aug 2017 17:18:24 +0300
parents df03ab8b6413
children 45e17cdde93a
comparison
equal deleted inserted replaced
133:df03ab8b6413 134:478ce4c94f6b
394 saveSettings(); 394 saveSettings();
395 395
396 delete ui; 396 delete ui;
397 delete model_People; 397 delete model_People;
398 delete model_Latest; 398 delete model_Latest;
399
400 // Commit and close database
401 QSqlDatabase::database().commit();
402 QSqlDatabase::database().close();
399 } 403 }
400 404
401 405
402 // 406 //
403 // Helper function for showing messages in the statusbar/line 407 // Helper function for showing messages in the statusbar/line