Terminal: Coverity warning fixes

Change-Id: If96291ff6df97f7e85840eb0951cc3f4abfab0f6
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Marcus Tillmanns
2023-02-27 11:06:14 +01:00
parent d4ac8aeaa6
commit 3e73fe302e
4 changed files with 9 additions and 6 deletions

View File

@@ -162,7 +162,7 @@ void TerminalPane::setFocus()
bool TerminalPane::hasFocus() const
{
if (const auto t = currentTerminal())
t->hasFocus();
return t->hasFocus();
return false;
}