From 6e80e73a3ad696e82016bdc853c775eaac82d833 Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Sat, 10 Nov 2018 23:50:17 -0600 Subject: [PATCH] Implemented Preset::file_exists() --- src/GUI/Preset.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/GUI/Preset.hpp b/src/GUI/Preset.hpp index 561c7390d..d01924ad9 100644 --- a/src/GUI/Preset.hpp +++ b/src/GUI/Preset.hpp @@ -10,6 +10,7 @@ #ifndef WX_PRECOMP #include #include + #include #endif namespace Slic3r { namespace GUI { @@ -50,7 +51,7 @@ public: /// Format the name appropriately. wxString dropdown_name() { return (this->dirty() ? wxString(this->name) << " " << _("(modified)") : wxString(this->name)); } - bool file_exists(wxString name); + bool file_exists() const { return wxFileExists(this->name); } bool prompt_unsaved_changes(wxWindow* parent);