adding loading validation to ensure run without a proper file

This commit is contained in:
Chris Cochrun 2023-02-19 21:10:50 -06:00
parent 6a0fb02c52
commit 4bb48c8f06

View file

@ -718,6 +718,8 @@ bool ServiceItemModel::load(QUrl file) {
qDebug() << "File path is: " << file.toString();
qDebug() << "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@";
if (file.isEmpty() || !file.isValid())
return false;
QString fileUrl = file.toString().right(file.toString().size() - 7);
KTar tar(fileUrl);