mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
fixes #945
This commit is contained in:
@@ -12,6 +12,7 @@ class widgetlock : public QObject {
|
||||
private:
|
||||
QWidget* widget;
|
||||
QPushButton* lockButton;
|
||||
|
||||
public slots:
|
||||
void lockButtonClicked(bool) {
|
||||
bool wasEnabled = widget->isEnabled();
|
||||
@@ -25,7 +26,8 @@ public:
|
||||
lockButton->setText(lockButton->tr("Edit"));
|
||||
QObject::connect(lockButton,SIGNAL(clicked(bool)), this, SLOT(lockButtonClicked(bool)));
|
||||
}
|
||||
virtual ~widgetlock() {
|
||||
virtual ~widgetlock() {}
|
||||
void deleteListener() {
|
||||
QObject::disconnect(lockButton,SIGNAL(clicked(bool)), this, SLOT(lockButtonClicked(bool)));
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user