mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
Avoid excessive debug outputs
Avoid excessive debug outputs when terminal type doesn't exist (99.99% of actual elements collections).
This commit is contained in:
parent
bfc1df633e
commit
ffabeb9caa
@ -182,7 +182,8 @@ QString TerminalData::typeToString(TerminalData::Type type)
|
||||
*/
|
||||
TerminalData::Type TerminalData::typeFromString(const QString &string)
|
||||
{
|
||||
if (string == "Generic") {
|
||||
if (string.isEmpty() ||
|
||||
string == "Generic") {
|
||||
return TerminalData::Generic;
|
||||
} else if (string == "Inner") {
|
||||
return TerminalData::Inner;
|
||||
|
Loading…
x
Reference in New Issue
Block a user