Skip to content

Commit

Permalink
Fixed marking changed file in title for not saved files
Browse files Browse the repository at this point in the history
  • Loading branch information
jirkapok committed Mar 8, 2018
1 parent 20e282d commit fd62be4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Src/SwqlStudio/QueryTab.cs
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,8 @@ private void delayTimer_Tick(object sender, EventArgs e)
{
this.delayTimer.Stop();

if (this.Parent != null && this.Modified && !this.Parent.Text.EndsWith("*"))
if (this.Parent != null && this.Modified &&
!string.IsNullOrEmpty(this.FileName) && !this.Parent.Text.EndsWith("*"))
this.Parent.Text = this.Parent.Text + "*";

DetectQueryParameters();
Expand Down

0 comments on commit fd62be4

Please sign in to comment.