Skip to content

Commit 029161b

Browse files
committed
wip: linux fix
setting the application icon causes the linux version to fail with an error at startup. This is only relevant for Windows so is now only conditionally compiled on windows builds.
1 parent 35ee2cc commit 029161b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ int main(int argc, char *argv[])
5454
QMimeDatabase mimeDatabase;
5555
QApplication application(argc, argv);
5656

57+
#if defined(Q_OS_WINDOWS)
5758
QGuiApplication::setWindowIcon(QIcon(":/assets/regex101.iconset/[email protected]"));
58-
59+
#endif
5960
// search the /fonts folder in the resources and attempt to load any found fonts
6061

6162
auto fontDirIterator = QDirIterator(applicationFontsPrefix, QDirIterator::Subdirectories);

0 commit comments

Comments
 (0)