events: Fix passing path through argv (#187)

This commit is contained in:
Robin Lambertz
2021-03-01 20:45:13 +01:00
committed by GitHub
parent 2eb83b0035
commit 293fc17aa6

View File

@@ -53,7 +53,7 @@ int main(int argc, char **argv) {
ContentRegistry::Views::add<ViewYara>();
if (argc > 1)
View::postEvent(Events::FileDropped, argv[1]);
View::postEvent(Events::FileDropped, const_cast<const char*>(argv[1]));
window.loop();