diff options
Diffstat (limited to 'Aktywator/RRBTournament.cs')
-rw-r--r-- | Aktywator/RRBTournament.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Aktywator/RRBTournament.cs b/Aktywator/RRBTournament.cs index a86e199..4d5fff8 100644 --- a/Aktywator/RRBTournament.cs +++ b/Aktywator/RRBTournament.cs @@ -25,7 +25,8 @@ namespace Aktywator override internal string getName() { - return this._xml.SelectSingleNode("//ustawienia/nazwa").InnerText; + string tName = this._xml.SelectSingleNode("//ustawienia/nazwa").InnerText.Trim(); + return tName.Length > 0 ? tName : Path.GetFileName(this._name); } override public string getSectionsNum() |