diff options
Diffstat (limited to 'ui/small_dlgs.cpp')
-rw-r--r-- | ui/small_dlgs.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ui/small_dlgs.cpp b/ui/small_dlgs.cpp index 3d63db47..e582142c 100644 --- a/ui/small_dlgs.cpp +++ b/ui/small_dlgs.cpp @@ -451,16 +451,14 @@ DefaultReturnCode::Response ffs3::showDeleteDialog(const std::vector<ffs3::FileS { DefaultReturnCode::Response rv = DefaultReturnCode::BUTTON_CANCEL; - DeleteDialog* confirmDeletion = new DeleteDialog(NULL, + DeleteDialog confirmDeletion(NULL, rowsOnLeft, rowsOnRight, deleteOnBothSides, useRecycleBin, totalDeleteCount); - if (confirmDeletion->ShowModal() == DeleteDialog::BUTTON_OKAY) + if (confirmDeletion.ShowModal() == DeleteDialog::BUTTON_OKAY) rv = DefaultReturnCode::BUTTON_OKAY; - - confirmDeletion->Destroy(); return rv; } //######################################################################################## |