Skip to content

Commit e803f47

Browse files
committed
Fix argv passing to Qt
1 parent 53d111c commit e803f47

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

ff-qtah/Main.hs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,12 @@ main = do
5959

6060
withApp :: (QApplication -> IO a) -> IO a
6161
withApp action = do
62+
prog <- getProgName
6263
args <- getArgs
63-
withScopedPtr (QApplication.new args) action
64+
-- let args'
65+
-- | any ("-style" `isPrefixOf`) args = args
66+
-- | otherwise = "-style=Fusion" : args
67+
withScopedPtr (QApplication.new $ prog : args) action
6468

6569
setupApp :: IO ()
6670
setupApp = do

0 commit comments

Comments
 (0)