mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 14:17:45 +00:00
Fire reject signal on exceptions in XDP file dialog
This commit is contained in:
@@ -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({});
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user