Skip to content
Snippets Groups Projects
Verified Commit 8c6c6d33 authored by Pea Nut's avatar Pea Nut
Browse files

[DEV] Show error message - to be discussed

parent 728585c9
Branches fix-855
No related tags found
1 merge request!214Improve error handling when Bitmask.Init fails, fixes #855
Pipeline #232270 passed
......@@ -6,8 +6,13 @@ import QtQuick.Templates as T
import QtQuick.Controls.impl
import QtQuick.Controls.Material
import QtQuick.Controls.Material.impl
import QtQuick.Dialogs
import "../themes/themes.js" as Theme
Item {
id: statusbox
anchors.fill: parent
......@@ -22,6 +27,17 @@ Item {
}
}
MessageDialog {
id: messageDialog
title: "Error starting VPN"
text: "error message here..."
onAccepted: {
console.log("And of course you could only agree.")
//Qt.quit()
}
Component.onCompleted: visible = true
}
VPNState {
id: vpn
}
......@@ -167,6 +183,14 @@ Item {
} else {
console.debug("unknown state");
}
messageDialog.open();
/*
QMessageBox messageBox;
messageBox.critical(0,"Error","An error has occured !");
messageBox.setFixedSize(500,200);
messageBox.open();
*/
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment