Ref T192, formatting and minor tweaks

This commit is contained in:
Klaus Basan
2017-11-18 18:39:56 +01:00
parent 1386fcd0db
commit 63fbeecc00
10 changed files with 25 additions and 25 deletions

View File

@@ -101,7 +101,8 @@ namespace BlackGui
void CMainKeypadAreaComponent::buttonSelected()
{
QPushButton *senderButton = static_cast<QPushButton *>(QObject::sender());
Q_ASSERT(senderButton);
Q_ASSERT_X(senderButton, Q_FUNC_INFO, "No sender button");
Q_ASSERT_X(sGui, Q_FUNC_INFO, "Need sGui");
if (!senderButton) { return; }
const CMainInfoAreaComponent::InfoArea ia = buttonToMainInfoArea(senderButton);
if (ia != CMainInfoAreaComponent::InfoAreaNone)