GUI: better handling of suppressions
This commit is contained in:
parent
5e34847592
commit
8c228c6ced
|
@ -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();
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue