mirror of
https://github.com/altlinux/admc.git
synced 2025-02-13 17:57:25 +03:00
fix incorrect isEmpty() call in console
This commit is contained in:
parent
e544b81ed2
commit
0a7a0e645d
@ -431,7 +431,7 @@ QList<QModelIndex> ConsoleWidget::search_items(const QModelIndex &parent, const
|
||||
QModelIndex ConsoleWidget::search_item(const QModelIndex &parent, int role, const QVariant &value, const QList<int> &type_list) const {
|
||||
const QList<QModelIndex> index_list = search_items(parent, role, value, type_list);
|
||||
|
||||
if (index_list.isEmpty()) {
|
||||
if (!index_list.isEmpty()) {
|
||||
const QModelIndex out = index_list[0];
|
||||
|
||||
return out;
|
||||
@ -443,7 +443,7 @@ QModelIndex ConsoleWidget::search_item(const QModelIndex &parent, int role, cons
|
||||
QModelIndex ConsoleWidget::search_item(const QModelIndex &parent, const QList<int> &type) const {
|
||||
const QList<QModelIndex> index_list = search_items(parent, type);
|
||||
|
||||
if (index_list.isEmpty()) {
|
||||
if (!index_list.isEmpty()) {
|
||||
const QModelIndex out = index_list[0];
|
||||
|
||||
return out;
|
||||
|
Loading…
x
Reference in New Issue
Block a user