Commit dfe13270 authored by Jan Grulich's avatar Jan Grulich
Browse files

Do not insert "empty" connections

This happens when you don't have access to a connection which was created by another user.
We should probably improve Connection::isValid() in libnm-qt to handle it.
parent 4593d174
......@@ -230,7 +230,7 @@ void Model::addConnection(const QString& connection, const QString& device)
NetworkManager::Connection::Ptr con = NetworkManager::findConnection(connection);
if (con->settings()->isSlave()) {
if (con->settings()->isSlave() || con->name().isEmpty() || con->uuid().isEmpty()) {
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