- Fixed Qt4 warning when deleting options

This commit is contained in:
Christophe Dumez 2008-12-24 14:53:40 +00:00
parent 3678aa4d23
commit 90879386d5
3 changed files with 6 additions and 3 deletions

View file

@ -1119,8 +1119,10 @@ void GUI::configureSession(bool deleteOptions) {
displayRSSTab(false);
}
// Clean up
if(deleteOptions) {
delete options;
if(deleteOptions && options) {
qDebug("Deleting options");
//delete options;
options->deleteLater();
}
qDebug("Session configured");
}