OSDN Git Service

[UI][Qt][PRINTER] Fix selecting printers.
authorK.Ohta <whatisthis.sowhat@gmail.com>
Mon, 12 Sep 2016 20:23:35 +0000 (05:23 +0900)
committerK.Ohta <whatisthis.sowhat@gmail.com>
Mon, 12 Sep 2016 20:23:35 +0000 (05:23 +0900)
source/src/qt/gui/mainwindow_utils.cpp

index 82582a6..fe96848 100644 (file)
@@ -291,7 +291,7 @@ void Ui_MainWindowBase::set_printer_device(int p_type)
                        p_type = using_flags->get_use_printer_type() - 1;
                }
        } else {
-               if(p_type >= 2) p_type = 1;
+               if(p_type >= 8) p_type = 0;
        }
        using_flags->get_config_ptr()->printer_device_type = p_type;
        emit sig_emu_update_config();