source: trunk/dports/comms/cutecom-qt4-mac/files/patch-qcppdialogimpl.cpp @ 83987

Last change on this file since 83987 was 83987, checked in by ryandesign@…, 9 years ago

cutecom-qt4-mac: update to 0.22.0, use cmake portgroup; see #30779 (maintainer timeout)

File size: 837 bytes
Line 
1--- qcppdialogimpl.cpp.orig     2009-06-25 15:10:49.000000000 -0500
2+++ qcppdialogimpl.cpp  2011-09-13 23:58:27.000000000 -0500
3@@ -351,12 +351,12 @@
4    QStringList devices=settings.value("/cutecom/AllDevices").toStringList();
5    if (!entryFound)
6    {
7-      devices<<"/dev/ttyS0"<<"/dev/ttyS1"<<"/dev/ttyS2"<<"/dev/ttyS3";
8+      devices<<DEVLIST;
9    }
10 
11    m_deviceCb->insertItems(0, devices);
12 
13-   int indexOfCurrentDevice = devices.indexOf(settings.value("/cutecom/CurrentDevice", "/dev/ttyS0").toString());
14+   int indexOfCurrentDevice = devices.indexOf(settings.value("/cutecom/CurrentDevice", DEFAULT_DEV).toString());
15    // fprintf(stderr, "currentDEev: -%s - index: %d\n", settings.value("/cutecom/CurrentDevice", "/dev/ttyS0").toString().toLatin1().constData(), indexOfCurrentDevice);
16    if (indexOfCurrentDevice!=-1)
17    {
Note: See TracBrowser for help on using the repository browser.