mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
QT: fix title in custom chains
This commit is contained in:
parent
dea9125620
commit
93ebe3b98a
1 changed files with 4 additions and 1 deletions
|
|
@ -91,5 +91,8 @@ const NetworkStyle* NetworkStyle::instantiate(const std::string& networkId)
|
|||
}
|
||||
// If it doesn't match any, use regtest since it's a custom chain
|
||||
assert(networkId != "regtest");
|
||||
return instantiate("regtest");
|
||||
// but keep the chain name in the title
|
||||
NetworkStyle* instance = const_cast<NetworkStyle*>(instantiate("regtest"));
|
||||
instance->titleAddText = titleAddText.c_str();
|
||||
return instance;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue