adding loading validation to ensure run without a proper file
This commit is contained in:
parent
6a0fb02c52
commit
4bb48c8f06
1 changed files with 2 additions and 0 deletions
|
@ -718,6 +718,8 @@ bool ServiceItemModel::load(QUrl file) {
|
||||||
qDebug() << "File path is: " << file.toString();
|
qDebug() << "File path is: " << file.toString();
|
||||||
qDebug() << "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@";
|
qDebug() << "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@";
|
||||||
|
|
||||||
|
if (file.isEmpty() || !file.isValid())
|
||||||
|
return false;
|
||||||
|
|
||||||
QString fileUrl = file.toString().right(file.toString().size() - 7);
|
QString fileUrl = file.toString().right(file.toString().size() - 7);
|
||||||
KTar tar(fileUrl);
|
KTar tar(fileUrl);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue