mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 19:27:49 +02:00
fixes #945
This commit is contained in:
parent
1673966e36
commit
ef30d2d3b6
6 changed files with 22 additions and 7 deletions
|
@ -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)));
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue