From dc1e2e9791fbd26ccb2b741f4b74b4b5922543ff Mon Sep 17 00:00:00 2001 From: Stefan Comanescu Date: Fri, 22 Nov 2019 14:20:06 +0200 Subject: [PATCH] Added SaveInformation::isValid helper method --- src/core/Utils.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/Utils.h b/src/core/Utils.h index b43e44fe7..4bfb3e312 100644 --- a/src/core/Utils.h +++ b/src/core/Utils.h @@ -85,6 +85,11 @@ struct SaveInformation final { QString path; QString filter; + + bool isValid() const + { + return !path.isEmpty(); + } }; namespace Utils