[system/kup] plasmoid-qt6/contents/ui: Fix warning when initializing
Tomáš Hnyk <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 306138db3a4baf07cbb4243c6d6bef79c57c2d2b by Tomáš Hnyk.
Committed on 30/07/2026 at 11:40.
Pushed by ngraham into branch 'master'.
Fix warning when initializing
M +2 -1 plasmoid-qt6/contents/ui/FullRepresentation.qml
https://invent.kde.org/system/kup/-/commit/306138db3a4baf07cbb4243c6d6bef79c57c2d2b
diff --git a/plasmoid-qt6/contents/ui/FullRepresentation.qml b/plasmoid-qt6/contents/ui/FullRepresentation.qml
index 754c067..2ba2d89 100644
--- a/plasmoid-qt6/contents/ui/FullRepresentation.qml
+++ b/plasmoid-qt6/contents/ui/FullRepresentation.qml
@@ -98,7 +98,8 @@ PlasmaComponents.Page {
}
function getPlanStatus(planNumber, key){
- return backupPlans.data["plan " + planNumber.toString()][key];
+ var plan = backupPlans.data["plan " + planNumber.toString()];
+ return plan && plan[key] !== undefined ? plan[key] : "";
}
function startOperation(i, name) {