[chronojump] On Delete tag confirm, shows the name of the tag
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] On Delete tag confirm, shows the name of the tag
- Date: Tue, 1 Dec 2020 16:58:36 +0000 (UTC)
commit b10aa43584981e038130fdb8843cd322321a99f7
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Dec 1 17:58:19 2020 +0100
On Delete tag confirm, shows the name of the tag
src/gui/app1/session/tagSessionSelect.cs | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/app1/session/tagSessionSelect.cs b/src/gui/app1/session/tagSessionSelect.cs
index e4ae4144..9ce43844 100644
--- a/src/gui/app1/session/tagSessionSelect.cs
+++ b/src/gui/app1/session/tagSessionSelect.cs
@@ -260,9 +260,13 @@ public class TagSessionSelect
private void on_tag_session_win_row_delete_prequestion (object o, EventArgs args)
{
- if(askDeletion) {
+ if(askDeletion)
+ {
+ int id = genericWin.TreeviewSelectedUniqueID;
+ TagSession ts = (TagSession) SqliteTagSession.Select(false, id)[0];
+
ConfirmWindow confirmWin = ConfirmWindow.Show(Catalog.GetString(
- "Are you sure you want to delete this tag?"), "", "");
+ "Are you sure you want to delete this tag?"), "", ts.Name);
confirmWin.Button_accept.Clicked += new EventHandler(on_tag_session_win_row_delete);
} else
on_tag_session_win_row_delete (o, args);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]