Preparation for 2 COM keys and increase/decrease volume hotkeys

Ref T672, Ref T642
This commit is contained in:
Klaus Basan
2019-05-29 00:23:04 +02:00
committed by Mat Sutcliffe
parent d509b1eb09
commit 50412aa0d1
6 changed files with 120 additions and 12 deletions

View File

@@ -176,7 +176,7 @@ namespace BlackGui
CIdentifierList CSettingsHotkeyComponent::getAllIdentifiers() const
{
CIdentifierList identifiers;
if (!sGui) { return identifiers; }
if (!sGui || !sGui->getIContextApplication()) { return identifiers; }
if (sGui->getIContextApplication()) { identifiers = sGui->getIContextApplication()->getRegisteredApplications(); }
// add local application
@@ -188,7 +188,7 @@ namespace BlackGui
{
if (keyDown)
{
QMessageBox* msgBox = new QMessageBox(this);
QMessageBox *msgBox = new QMessageBox(this);
msgBox->setAttribute(Qt::WA_DeleteOnClose);
msgBox->setStandardButtons(QMessageBox::Ok);
msgBox->setWindowTitle("Test");