summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-08-23 14:45:50 +0200
committeremkael <emkael@tlen.pl>2017-08-23 14:45:50 +0200
commit4315e1a19c582133053ed01b82c801b5904c2aa3 (patch)
tree5ac80d3168b08791dce31db0cb5efcfe4f116ad1
parent9768f0f8ec287b3fe76707e15946fdff9f832f6b (diff)
Fallback name for RRB tournaments
-rw-r--r--Aktywator/RRBTournament.cs3
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()