Changed QSharedPointer -> QPointer

CCBUG: 290965
This commit is contained in:
Hugo Pereira Da Costa 2012-01-09 09:42:37 +01:00
parent c8fbb4ec61
commit 736a54b308

View file

@ -27,7 +27,7 @@
#include "oxygenexceptionlistwidget.moc" #include "oxygenexceptionlistwidget.moc"
#include "oxygenexceptiondialog.h" #include "oxygenexceptiondialog.h"
#include <QtCore/QSharedPointer> #include <QtCore/QPointer>
#include <KLocale> #include <KLocale>
#include <KMessageBox> #include <KMessageBox>
@ -113,9 +113,13 @@ namespace Oxygen
{ {
// map dialog // map dialog
QSharedPointer<ExceptionDialog> dialog( new ExceptionDialog( this ) ); //QSharedPointer<ExceptionDialog> dialog( new ExceptionDialog( this ) );
QPointer<ExceptionDialog> dialog = new ExceptionDialog( this );
dialog->setException( _defaultConfiguration ); dialog->setException( _defaultConfiguration );
// run dialog and check existence
if( dialog->exec() == QDialog::Rejected ) return; if( dialog->exec() == QDialog::Rejected ) return;
if( !dialog ) return;
// retrieve exception and check // retrieve exception and check
Exception exception( dialog->exception() ); Exception exception( dialog->exception() );
@ -132,6 +136,8 @@ namespace Oxygen
ui.exceptionListView->selectionModel()->setCurrentIndex( index, QItemSelectionModel::Current|QItemSelectionModel::Rows ); ui.exceptionListView->selectionModel()->setCurrentIndex( index, QItemSelectionModel::Current|QItemSelectionModel::Rows );
} }
delete dialog;
resizeColumns(); resizeColumns();
emit changed(); emit changed();
return; return;