Skip to content

Commit 4a7d27a

Browse files
committed
fix page-renaming exception after cancel edit
1 parent 21752b4 commit 4a7d27a

File tree

8 files changed

+17
-8
lines changed

8 files changed

+17
-8
lines changed

MyCBZ/App.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
<applicationSettings>
136136
<Win_CBZ.Win_CBZSettings>
137137
<setting name="Version" serializeAs="String">
138-
<value>0.19.138b</value>
138+
<value>0.19.139b</value>
139139
</setting>
140140
<setting name="RenamerPlaceholders" serializeAs="Xml">
141141
<value>

MyCBZ/Forms/ApplicationDialog.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ private void ApplicationDialog_KeyUp(object sender, KeyEventArgs e)
173173
{
174174
if (sender == this)
175175
{
176+
/*
176177
if (e.KeyCode == Keys.Escape)
177178
{
178179
DialogResult = _cancelResult;
@@ -184,6 +185,7 @@ private void ApplicationDialog_KeyUp(object sender, KeyEventArgs e)
184185
DialogResult = _okResult;
185186
Close();
186187
}
188+
*/
187189
}
188190
}
189191

MyCBZ/Forms/MainForm.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2437,6 +2437,13 @@ private void AddFilesToolStripMenuItem_Click(object sender, EventArgs e)
24372437

24382438
private void PagesList_AfterLabelEdit(object sender, LabelEditEventArgs e)
24392439
{
2440+
if (e.Label == null)
2441+
{
2442+
e.CancelEdit = true;
2443+
2444+
return;
2445+
}
2446+
24402447
if (e.Item > -1)
24412448
{
24422449
ListViewItem changedItem = PagesList.Items[e.Item];

MyCBZ/Win_CBZ.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<UpdateRequired>false</UpdateRequired>
2222
<MapFileExtensions>true</MapFileExtensions>
2323
<ApplicationRevision>0</ApplicationRevision>
24-
<ApplicationVersion>0.19.138.%2a</ApplicationVersion>
24+
<ApplicationVersion>0.19.139.%2a</ApplicationVersion>
2525
<UseApplicationTrust>false</UseApplicationTrust>
2626
<BootstrapperEnabled>true</BootstrapperEnabled>
2727
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>

MyCBZ/Win_CBZSettings.Designer.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

MyCBZ/Win_CBZSettings.settings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<Value Profile="(Default)">%APPDATA%\WIN_CBZ\Temp\</Value>
77
</Setting>
88
<Setting Name="Version" Type="System.String" Scope="Application">
9-
<Value Profile="(Default)">0.19.138b</Value>
9+
<Value Profile="(Default)">0.19.139b</Value>
1010
</Setting>
1111
<Setting Name="RenamerPlaceholders" Type="System.Collections.Specialized.StringCollection" Scope="Application">
1212
<Value Profile="(Default)">&lt;?xml version="1.0" encoding="utf-16"?&gt;

Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Microsoft Visual Studio [Community] 2022 (64-Bit)
4848

4949
## Latest Release
5050

51-
v0.19.138b released!
51+
v0.19.139b released!
5252

5353
## Third party components
5454

Win_CBZ-Setup/Win_CBZ-Setup.vdproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,15 +248,15 @@
248248
{
249249
"Name" = "8:Microsoft Visual Studio"
250250
"ProductName" = "8:Win_CBZ"
251-
"ProductCode" = "8:{B57638FB-269E-400E-9563-7A1B3A7C7A28}"
252-
"PackageCode" = "8:{EF7FBA10-50D0-4F3D-9859-E2EB41C2C438}"
251+
"ProductCode" = "8:{24CA07E6-D8BB-4DA4-8402-15D72901C80D}"
252+
"PackageCode" = "8:{2A46E5A9-0834-41FE-AE2B-2E955CEE21C2}"
253253
"UpgradeCode" = "8:{66FAEF81-1CAE-4971-9E0F-796310EFEA5E}"
254254
"AspNetVersion" = "8:4.0.30319.0"
255255
"RestartWWWService" = "11:FALSE"
256256
"RemovePreviousVersions" = "11:TRUE"
257257
"DetectNewerInstalledVersion" = "11:TRUE"
258258
"InstallAllUsers" = "11:FALSE"
259-
"ProductVersion" = "8:0.19.138"
259+
"ProductVersion" = "8:0.19.139"
260260
"Manufacturer" = "8:Trash_s0Ft"
261261
"ARPHELPTELEPHONE" = "8:"
262262
"ARPHELPLINK" = "8:"

0 commit comments

Comments
 (0)