Commit 15f1600f authored by Yuri Chornoivan's avatar Yuri Chornoivan
Browse files

Fix minor issues found by EBN

parent 02888058
......@@ -238,7 +238,7 @@ void WireGuardPeerWidget::checkEndpointValid()
setBackground(portWidget, WireGuardPeerWidget::BothValid == valid || WireGuardPeerWidget::PortValid == valid);
// If there is a ':' in the address string then it is an IPv6 address and
// the output needs to be formatted as '[1:2:3:4:5:6:7:8]:123' otherwhise
// the output needs to be formatted as '[1:2:3:4:5:6:7:8]:123' otherwise
// it is formatted as '1.2.3.4:123' or 'ab.com:123'
QString stringToStore;
if (addressString.contains(":"))
......
......@@ -18,8 +18,8 @@
License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef PLASMA_NM_WIREGUARD_PEERS_TAB_WIDGET_H
#define PLASMA_NM_WIREGUARD_PEERS_TAB_WIDGET_H
#ifndef PLASMA_NM_WIREGUARD_TAB_WIDGET_H
#define PLASMA_NM_WIREGUARD_TAB_WIDGET_H
#include <QDialog>
......@@ -51,4 +51,4 @@ private:
Private *d;
};
#endif // PLASMA_NM_WIREGUARD_PEERS_TABS_WIDGET_H
#endif // PLASMA_NM_WIREGUARD_TAB_WIDGET_H
......@@ -64,7 +64,7 @@ bool MobileProxyModel::filterAcceptsRow(int source_row, const QModelIndex& sourc
return itemType == NetworkModelItem::UnavailableConnection;
} else {
if (sourceModel()->data(index,NetworkModel::SignalRole).toUInt() == 0)
return false; // if signal is 0 yet we still have connection, it means local access point -> we dont want to show that
return false; // if signal is 0 yet we still have connection, it means local access point -> we don't want to show that
return itemType >= NetworkModelItem::AvailableConnection;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment