X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Ftabcompleter.cpp;h=41ea4fffc469aa8ef23542a7a1dd9d15f4e84e92;hb=d28b9ec38b6ea0bc473200fc2f1e65abd1b56bd6;hp=60a74fb880597c10fbe4a591f723e1dfca5593c0;hpb=50706d89d4d60e258ebb6873d3778383621898e4;p=quassel.git diff --git a/src/uisupport/tabcompleter.cpp b/src/uisupport/tabcompleter.cpp index 60a74fb8..41ea4fff 100644 --- a/src/uisupport/tabcompleter.cpp +++ b/src/uisupport/tabcompleter.cpp @@ -42,7 +42,7 @@ void TabCompleter::buildCompletionList() { if(!currentIndex.data(NetworkModel::BufferIdRole).isValid()) return; - NetworkId networkId = currentIndex.data(NetworkModel::NetworkIdRole).toUInt(); + NetworkId networkId = currentIndex.data(NetworkModel::NetworkIdRole).value(); QString channelName = currentIndex.sibling(currentIndex.row(), 0).data().toString(); Network *network = Client::network(networkId);