From 6fbf5b33ccafd1c404162029ac60e8446c36a77e Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Mon, 9 Mar 2015 15:12:48 -0300 Subject: Remove redundant code Another snippet that shouldn't exist. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/maintab.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'qt-ui/maintab.cpp') 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() -- cgit v1.2.3-70-g09d2