diff --git a/app/qml/main.qml b/app/qml/main.qml
index 6bcbf14ede561db4eee1ea240b1deebf13254018..2d63ab2e8a87a92b19e94c106e96afe3b7737ae3 100644
--- a/app/qml/main.qml
+++ b/app/qml/main.qml
@@ -12,13 +12,14 @@ Window {
     id: app
 
     title: configHandler.getAppConfigApplication().name
+
+    visible: true
     width: 400
-    height: 200
     minimumWidth: 400
-    minimumHeight: 200
     maximumWidth: 800
+    height: 200
+    minimumHeight: 200
     maximumHeight: 400
-    visible: true
 
     function init() {
         var metadata = ocsUrlHandler.metadata();
diff --git a/app/qml/ui/Dialog.qml b/app/qml/ui/Dialog.qml
index 8ccee74824f82ad39264d6e54f636e00e55653f9..4c0358f28f8b44f707f578afe0cf6e876a6b80c0 100644
--- a/app/qml/ui/Dialog.qml
+++ b/app/qml/ui/Dialog.qml
@@ -5,10 +5,10 @@ import QtQuick.Controls 1.0
 ColumnLayout {
     id: dialog
 
+    visible: false
     anchors.fill: parent
     anchors.margins: 12
     spacing: 8
-    visible: false
 
     property alias icon: icon.source
     property alias primaryText: primaryText.text
@@ -33,9 +33,9 @@ ColumnLayout {
         Image {
             id: icon
             source: ""
+            visible: source.toString() ? true : false
             Layout.preferredWidth: 32
             Layout.preferredHeight: 32
-            visible: source.toString() ? true : false
         }
         ColumnLayout {
             Layout.fillWidth: true