Coverity Scan.
--HG-- branch : develop
This commit is contained in:
parent
0d0748fcee
commit
c4ddcdffe8
|
@ -1594,6 +1594,8 @@ void MainWindow::FullParseFile()
|
|||
ui->actionPattern_properties->setEnabled(true);
|
||||
|
||||
qint32 index = comboBoxDraws->findText(patternPiece);
|
||||
try
|
||||
{
|
||||
if ( index != -1 )
|
||||
{ // -1 for not found
|
||||
currentDrawChanged(index);
|
||||
|
@ -1602,6 +1604,19 @@ void MainWindow::FullParseFile()
|
|||
{
|
||||
currentDrawChanged(0);
|
||||
}
|
||||
}
|
||||
catch (VExceptionBadId &e)
|
||||
{
|
||||
e.CriticalMessageBox(tr("Bad id."), this);
|
||||
Clear();
|
||||
return;
|
||||
}
|
||||
catch (const VExceptionEmptyParameter &e)
|
||||
{
|
||||
e.CriticalMessageBox(tr("Error empty parameter."), this);
|
||||
Clear();
|
||||
return;
|
||||
}
|
||||
|
||||
if (comboBoxDraws->count() > 0)
|
||||
{
|
||||
|
|
|
@ -458,7 +458,7 @@ void VToolDetail::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
|
|||
}
|
||||
if (selectedAction == actionRemove)
|
||||
{
|
||||
DeleteTool(this);
|
||||
DeleteTool();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user