Skip to content

Commit 31899d8

Browse files
authored
1 parent bd967c0 commit 31899d8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
#include <desktopinfo.h>
3232
#endif
3333

34+
// Required for saving button list QList<CaptureTool::Type>
35+
Q_DECLARE_METATYPE(QList<int>)
36+
3437
int requestCaptureAndWait(const CaptureRequest& req)
3538
{
3639
Flameshot* flameshot = Flameshot::instance();
@@ -134,6 +137,9 @@ void reinitializeAsQApplication(int& argc, char* argv[])
134137

135138
int main(int argc, char* argv[])
136139
{
140+
// Required for saving button list QList<CaptureTool::Type>
141+
qRegisterMetaType<QList<int>>();
142+
137143
QCoreApplication::setApplicationVersion(APP_VERSION);
138144
QCoreApplication::setApplicationName(QStringLiteral("flameshot"));
139145
QCoreApplication::setOrganizationName(QStringLiteral("flameshot"));

0 commit comments

Comments
 (0)