diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-03-09 15:12:48 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-03-10 07:47:00 -0700 |
commit | 6fbf5b33ccafd1c404162029ac60e8446c36a77e (patch) | |
tree | 8c66003ce863bd0cb10e37035153d6249b2b724e /qt-ui/maintab.cpp | |
parent | a5448ef7294185447b3c6b01b9f6a776422d2b54 (diff) | |
download | subsurface-6fbf5b33ccafd1c404162029ac60e8446c36a77e.tar.gz |
Remove redundant code
Another snippet that shouldn't exist.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 956a1bcc5..7958ad3d8 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -955,10 +955,7 @@ void MainTab::markChangedWidget(QWidget *w) qApp->palette().color(QPalette::Text).getHslF(&h, &s, &l, &a); p.setBrush(QPalette::Base, (l <= 0.3) ? QColor(Qt::yellow).lighter() : (l <= 0.6) ? QColor(Qt::yellow).light() : /* else */ QColor(Qt::yellow).darker(300)); w->setPalette(p); - if (!modified) { - modified = true; - enableEdition(); - } + modified = true; } void MainTab::on_buddy_textChanged() |