diff options
-rw-r--r-- | ui/qt5/netsimplewifipage.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/qt5/netsimplewifipage.cc b/ui/qt5/netsimplewifipage.cc index ee0f31a..866cc5f 100644 --- a/ui/qt5/netsimplewifipage.cc +++ b/ui/qt5/netsimplewifipage.cc @@ -198,7 +198,7 @@ void NetworkSimpleWirelessPage::initializePage() { } bool NetworkSimpleWirelessPage::isComplete() const { - if(ssidListView->currentRow() != -1) { + if(ssidListView->currentRow() == -1) { return false; } @@ -268,8 +268,9 @@ int NetworkSimpleWirelessPage::processScan(wpactrl_t *c, const char *, size_t) { .arg(network.frequency) .arg(fromMacAddress(network.bssid)) .arg(network.signal_level)); + QString zero(QString::fromStdString(std::string("\0", 1))); netitem->setData(Qt::UserRole, QString::fromStdString(flags) - .split("\0")); + .split(zero)); netitem->setData(Qt::UserRole + 1, network.signal_level); netitems.push_back(netitem); } |