mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix webservice download dialog
We need to close the dialog after applying what was downloaded, and we should not try to delete the manager in case of cancel (as that reliably causes the SIGSEGV. Suggested-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
1668952ed3
commit
bdee5ea9a6
1 changed files with 6 additions and 2 deletions
|
@ -59,10 +59,14 @@ void SubsurfaceWebServices::buttonClicked(QAbstractButton* button)
|
|||
QSettings s;
|
||||
s.setValue("webservice_uid", ui->userID->text());
|
||||
s.sync();
|
||||
hide();
|
||||
close();
|
||||
}
|
||||
break;
|
||||
case QDialogButtonBox::RejectRole:
|
||||
manager->deleteLater();
|
||||
// we may want to clean up after ourselves, but this
|
||||
// makes Subsurface throw a SIGSEGV...
|
||||
// manager->deleteLater();
|
||||
reply->deleteLater();
|
||||
ui->progressBar->setMaximum(1);
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue