2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Fix crash on invalid lottie file selection.

This commit is contained in:
John Preston
2019-05-30 18:09:44 +03:00
parent 325323e0b3
commit a968e112e8
3 changed files with 6 additions and 25 deletions

View File

@@ -308,9 +308,6 @@ void DocumentOpenClickHandler::Open(
if (QImageReader(path).canRead()) {
Core::App().showDocument(data, context);
return;
//} else if (Lottie::ValidateFile(path)) {
// Core::App().showDocument(data, context);
// return;
}
}
LaunchWithWarning(location.name(), context);