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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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();