* Use GetSettingsWindow() instead of window() to avoid connecting to the
  wrong widget
* Fix typos
This commit is contained in:
WarmUpTill
2025-06-22 20:08:21 +02:00
committed by WarmUpTill
parent be8f7bd70f
commit 0b774c171d
26 changed files with 75 additions and 57 deletions

View File

@@ -1,6 +1,7 @@
#include "macro-action-random.hpp"
#include "layout-helpers.hpp"
#include "macro-helpers.hpp"
#include "ui-helpers.hpp"
#include <cstdlib>
@@ -105,7 +106,8 @@ MacroActionRandomEdit::MacroActionRandomEdit(
QWidget::connect(_list, SIGNAL(Removed(int)), this, SLOT(Remove(int)));
QWidget::connect(_list, SIGNAL(Replaced(int, const std::string &)),
this, SLOT(Replace(int, const std::string &)));
QWidget::connect(window(), SIGNAL(MacroRemoved(const QString &)), this,
QWidget::connect(GetSettingsWindow(),
SIGNAL(MacroRemoved(const QString &)), this,
SLOT(MacroRemove(const QString &)));
QWidget::connect(_allowRepeat, SIGNAL(stateChanged(int)), this,
SLOT(AllowRepeatChanged(int)));