Fix usage of 'emit' macro

Even though it doesn't expand to anything...
This commit is contained in:
Martin Kleusberg
2017-10-30 13:12:28 +01:00
parent 3bd2dc3bc1
commit 7c1ff86900
2 changed files with 2 additions and 2 deletions

View File

@@ -76,7 +76,7 @@ void EditTableDialog::keyPressEvent(QKeyEvent *evt)
if((evt->modifiers() & Qt::ControlModifier)
&& (evt->key() == Qt::Key_Enter || evt->key() == Qt::Key_Return))
{
emit accept();
accept();
return;
}
if(evt->key() == Qt::Key_Enter || evt->key() == Qt::Key_Return)

View File

@@ -364,7 +364,7 @@ bool SqliteTableModel::setTypedData(const QModelIndex& index, bool isBlob, const
m_data[index.row()].replace(index.column(), newValue);
lock.unlock();
emit(dataChanged(index, index));
emit dataChanged(index, index);
return true;
} else {
lock.unlock();