summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/QtProfileWindow.cpp')
-rw-r--r--Swift/QtUI/QtProfileWindow.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/Swift/QtUI/QtProfileWindow.cpp b/Swift/QtUI/QtProfileWindow.cpp
index ccc6ae9..26b160a 100644
--- a/Swift/QtUI/QtProfileWindow.cpp
+++ b/Swift/QtUI/QtProfileWindow.cpp
@@ -22,14 +22,15 @@
namespace Swift {
-QtProfileWindow::QtProfileWindow(QWidget* parent) :
- QWidget(parent),
+QtProfileWindow::QtProfileWindow() :
+ QWidget(),
ui(new Ui::QtProfileWindow) {
ui->setupUi(this);
new QShortcut(QKeySequence::Close, this, SLOT(close()));
ui->throbberLabel->setMovie(new QMovie(":/icons/throbber.gif", QByteArray(), this));
connect(ui->savePushButton, SIGNAL(clicked()), SLOT(handleSave()));
setEditable(false);
+ setAttribute(Qt::WA_DeleteOnClose);
}
QtProfileWindow::~QtProfileWindow() {
@@ -104,8 +105,8 @@ void QtProfileWindow::updateTitle() {
}
void QtProfileWindow::closeEvent(QCloseEvent* event) {
- onWindowClosed(jid);
event->accept();
+ onWindowAboutToBeClosed(jid);
}
void QtProfileWindow::handleSave() {