Blog: LPub4 for Linux, 4th iteration: lpub4-6-preferencesdialog.patch

File lpub4-6-preferencesdialog.patch, 620 bytes (added by retracile, 11 years ago)
  • preferencesdialog.cpp

    diff --git a/preferencesdialog.cpp b/preferencesdialog.cpp
    index 7080711..a829483 100644
    a b void PreferencesDialog::on_browseLDView_clicked() 
    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
    void PreferencesDialog::on_browseLDGLite_clicked() 
    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