Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add error-handling

  • Loading branch information...
commit f5a8d73bbcf7222e89eb739ba2ba6f794e05b831 1 parent e051573
Ole André Vadla Ravnås oleavr authored
Showing with 11 additions and 0 deletions.
  1. +11 0 geoshark.qml
11 geoshark.qml
View
@@ -1,5 +1,6 @@
import QtQuick 2.2
import QtQuick.Controls 1.1
+import QtQuick.Dialogs 1.1
import QtQuick.Window 2.0
import QtQuick.Layouts 1.1
@@ -58,6 +59,12 @@ ApplicationWindow {
}
}
+ MessageDialog {
+ id: errorDialog
+ title: "Error"
+ icon: StandardIcon.Critical
+ }
+
ProcessListModel {
id: processModel
device: Frida.localSystem
@@ -66,6 +73,10 @@ ApplicationWindow {
Script {
id: script
url: Qt.resolvedUrl("./agent.js")
+ onError: {
+ errorDialog.text = message;
+ errorDialog.open();
+ }
onMessage: {
messages.append(JSON.stringify(object) + "\n");
}
Please sign in to comment.
Something went wrong with that request. Please try again.