diff --git a/src/main.cpp b/src/main.cpp index 9c9fa7591d..d025e0b4ce 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -31,6 +31,9 @@ #include #endif +// Required for saving button list QList +Q_DECLARE_METATYPE(QList) + int requestCaptureAndWait(const CaptureRequest& req) { Flameshot* flameshot = Flameshot::instance(); @@ -134,6 +137,9 @@ void reinitializeAsQApplication(int& argc, char* argv[]) int main(int argc, char* argv[]) { + // Required for saving button list QList + qRegisterMetaType>(); + QCoreApplication::setApplicationVersion(APP_VERSION); QCoreApplication::setApplicationName(QStringLiteral("flameshot")); QCoreApplication::setOrganizationName(QStringLiteral("flameshot"));