Blog: LPub4 for Linux, 2nd iteration: lpub4-preferencesdialog.patch

File lpub4-preferencesdialog.patch, 612 bytes (added by retracile, 9 years ago)
  • preferencesdialog.cpp

    diff -urN LPub4.orig/preferencesdialog.cpp LPub4.prefs-filter/preferencesdialog.cpp
    old new  
    106106 
    107107#ifdef __APPLE__ 
    108108  //dialog.setFilter("Program (*.app,*.App)"); 
     109#elif defined(__unix__) 
     110  /* no filter */ 
    109111#else 
    110112  dialog.setFilter("Program (*.exe)"); 
    111113#endif 
     
    136138 
    137139#ifdef __APPLE__ 
    138140  //dialog.setFilter("Program (*.app,*.App)"); 
     141#elif defined(__unix__) 
     142  /* no filter */ 
    139143#else 
    140144  dialog.setFilter("Program (*.exe)"); 
    141145#endif