Commit 3a230b52 authored by Lukáš Tinkl's avatar Lukáš Tinkl
Browse files

display the connection name when removing it

parent 076a562b
...@@ -43,7 +43,7 @@ ApplicationWindow { ...@@ -43,7 +43,7 @@ ApplicationWindow {
MessageDialog { MessageDialog {
id: removeDialog; id: removeDialog;
title: i18n("Remove Connection"); title: i18n("Remove Connection");
text: i18n("Are you sure you want to remove this connection?"); text: i18n("Are you sure you want to remove connection '%1'?", editorProxyModel.get(connectionView.currentRow, "Name"));
standardButtons: StandardButton.Yes | StandardButton.No; standardButtons: StandardButton.Yes | StandardButton.No;
icon: StandardIcon.Question; icon: StandardIcon.Question;
onYes: { onYes: {
...@@ -85,6 +85,7 @@ ApplicationWindow { ...@@ -85,6 +85,7 @@ ApplicationWindow {
text: i18n("Remove"); text: i18n("Remove");
onTriggered: { onTriggered: {
console.log("Removing " + editorProxyModel.get(connectionView.currentRow, "Name"));
removeDialog.open(); removeDialog.open();
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment