2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 06:07:45 +00:00

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

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({});
}
}