Skip to content

Commit c5c7bd5

Browse files
author
Stephanie Reeder
committed
fix save message so only a keyword is changed
1 parent e151d3f commit c5c7bd5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

odmtools/gui/wizSave.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,6 @@ def on_wizard_finished(self, event):
307307
original = self.pgExisting.pnlExisting.rbOriginal.GetValue()
308308
new = self.pgExisting.pnlExisting.rbNew.GetValue()
309309

310-
311-
312310
if QCL.id == 0 and not rbSaveAsNew:
313311
"""
314312
If we're looking at a QCL with Control level 0 and the following cases:
@@ -328,10 +326,12 @@ def on_wizard_finished(self, event):
328326
closeSuccessful = True
329327

330328
elif rbSaveAsExisting:
331-
message = "You are about to overwrite an existing series,\nthis action cannot be undone.\nWould you like to continue?\n"
329+
keyword = "overwrite"
332330

333331
if self.pgExisting.pnlExisting.rbAppend:
334-
message = "You are about to append to an existing series,\nthis action cannot be undone.\nWould you like to continue?\n"
332+
keyword = "append to"
333+
334+
message = "You are about to "+keyword+" an existing series,\nthis action cannot be undone.\nWould you like to continue?\n"
335335
cont = wx.MessageBox(message,
336336
'Are you sure?',
337337
wx.YES_NO | wx.ICON_QUESTION)

0 commit comments

Comments
 (0)