diff options
author | emkael <emkael@tlen.pl> | 2017-08-23 14:45:50 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-08-23 14:45:50 +0200 |
commit | 4315e1a19c582133053ed01b82c801b5904c2aa3 (patch) | |
tree | 5ac80d3168b08791dce31db0cb5efcfe4f116ad1 /Aktywator | |
parent | 9768f0f8ec287b3fe76707e15946fdff9f832f6b (diff) |
Fallback name for RRB tournaments
Diffstat (limited to 'Aktywator')
-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() |