fix -Wextra & -Wdeprecated in Path

This commit is contained in:
wmayer
2016-09-22 18:53:24 +02:00
parent dd7c91ddcf
commit dbfcc77e6a
9 changed files with 13 additions and 11 deletions

View File

@@ -42,6 +42,7 @@ PROPERTY_SOURCE(PathGui::ViewProviderPathCompound, PathGui::ViewProviderPath)
bool ViewProviderPathCompound::setEdit(int ModNum)
{
Q_UNUSED(ModNum);
Gui::TaskView::TaskDialog* dlg = new TaskDlgPathCompound(this);
Gui::Control().showDialog(dlg);
return true;
@@ -49,6 +50,7 @@ bool ViewProviderPathCompound::setEdit(int ModNum)
void ViewProviderPathCompound::unsetEdit(int ModNum)
{
Q_UNUSED(ModNum);
// when pressing ESC make sure to close the dialog
Gui::Control().closeDialog();
}