TechDraw: Replace dynamic_cast with qobject_cast
This commit is contained in:
committed by
Benjamin Nauck
parent
ef357aa07a
commit
ed6e953c90
@@ -306,7 +306,7 @@ bool ViewProviderDimension::onDelete(const std::vector<std::string> & parms)
|
||||
{
|
||||
Q_UNUSED(parms)
|
||||
auto dlg = Gui::Control().activeDialog();
|
||||
auto ourDlg = dynamic_cast<TaskDlgDimension*>(dlg);
|
||||
auto ourDlg = qobject_cast<TaskDlgDimension*>(dlg);
|
||||
if (ourDlg) {
|
||||
QString bodyMessage;
|
||||
QTextStream bodyMessageStream(&bodyMessage);
|
||||
|
||||
Reference in New Issue
Block a user