X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mech_eap.git;a=blobdiff_plain;f=libeap%2Fwpa_supplicant%2Fwpa_gui-qt4%2Faddinterface.cpp;h=7d92f63d1b1d8c1cd223cea77b55673cf7682860;hp=88d4603d03f951826ac6a1d51f8922b63d0287f4;hb=4f319dde67a76fe0aaf33f6d2788968012584ada;hpb=ed09b5e64dd485851310307979d5eed14678087b diff --git a/libeap/wpa_supplicant/wpa_gui-qt4/addinterface.cpp b/libeap/wpa_supplicant/wpa_gui-qt4/addinterface.cpp index 88d4603..7d92f63 100644 --- a/libeap/wpa_supplicant/wpa_gui-qt4/addinterface.cpp +++ b/libeap/wpa_supplicant/wpa_gui-qt4/addinterface.cpp @@ -2,14 +2,8 @@ * wpa_gui - AddInterface class * Copyright (c) 2008, Jouni Malinen * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * Alternatively, this software may be distributed under the terms of BSD - * license. - * - * See README and COPYING for more details. + * This software may be distributed under the terms of the BSD license. + * See README for more details. */ #include @@ -47,8 +41,8 @@ AddInterface::AddInterface(WpaGui *_wpagui, QWidget *parent) interfaceWidget->headerItem()->setText(0, tr("driver")); interfaceWidget->headerItem()->setText(1, tr("interface")); interfaceWidget->headerItem()->setText(2, tr("description")); - interfaceWidget->setItemsExpandable(FALSE); - interfaceWidget->setRootIsDecorated(FALSE); + interfaceWidget->setItemsExpandable(false); + interfaceWidget->setRootIsDecorated(false); vboxLayout->addWidget(interfaceWidget); connect(interfaceWidget, @@ -202,9 +196,9 @@ void AddInterface::interfaceSelected(QTreeWidgetItem *sel) */ snprintf(cmd, sizeof(cmd), "INTERFACE_ADD %s\t%s\t%s\t%s\t%s\t%s", - sel->text(1).toAscii().constData(), + sel->text(1).toLocal8Bit().constData(), "default", - sel->text(0).toAscii().constData(), + sel->text(0).toLocal8Bit().constData(), "yes", "", ""); cmd[sizeof(cmd) - 1] = '\0';