GUI: better handling of suppressions

This commit is contained in:
Daniel Marjamäki 2018-07-01 14:24:37 +02:00
parent 5e34847592
commit 8c228c6ced
2 changed files with 8 additions and 0 deletions

View File

@ -38,6 +38,8 @@ Suppressions::Suppression NewSuppressionDialog::getSuppression() const
{ {
Suppressions::Suppression ret; Suppressions::Suppression ret;
ret.errorId = mUI->mComboErrorId->currentText().toStdString(); ret.errorId = mUI->mComboErrorId->currentText().toStdString();
if (ret.errorId.empty())
ret.errorId = "*";
ret.fileName = mUI->mTextFileName->text().toStdString(); ret.fileName = mUI->mTextFileName->text().toStdString();
ret.lineNumber = mUI->mTextLineNumber->text().toInt(); ret.lineNumber = mUI->mTextLineNumber->text().toInt();
ret.symbolName = mUI->mTextSymbolName->text().toStdString(); ret.symbolName = mUI->mTextSymbolName->text().toStdString();

View File

@ -77,6 +77,12 @@
</item> </item>
</layout> </layout>
</widget> </widget>
<tabstops>
<tabstop>mComboErrorId</tabstop>
<tabstop>mTextFileName</tabstop>
<tabstop>mTextLineNumber</tabstop>
<tabstop>mTextSymbolName</tabstop>
</tabstops>
<resources/> <resources/>
<connections> <connections>
<connection> <connection>