Fire reject signal on exceptions in XDP file dialog

This commit is contained in:
Ilya Fedin 2021-03-06 22:30:34 +04:00 committed by John Preston
parent 5d1601d9c9
commit d6848c49e8
1 changed files with 4 additions and 0 deletions

View File

@ -440,6 +440,8 @@ void XDPFileDialog::openPortal() {
} catch (const Glib::Error &e) {
LOG(("XDP File Dialog Error: %1").arg(
QString::fromStdString(e.what())));
_reject.fire({});
}
}
@ -619,6 +621,8 @@ void XDPFileDialog::gotResponse(
} catch (const std::exception &e) {
LOG(("XDP File Dialog Error: %1").arg(
QString::fromStdString(e.what())));
_reject.fire({});
}
}