diff options
author | Lubos Dolezel <lubos@dolezel.info> | 2015-06-02 22:33:03 +0200 |
---|---|---|
committer | Lubos Dolezel <lubos@dolezel.info> | 2015-06-02 22:33:03 +0200 |
commit | 4f78c9fc7766574179248bba5943cf7474d4f877 (patch) | |
tree | f16f24c5d6caa621f65f864b8f4807d77b3f2764 | |
parent | c13aae57cafa35b8f3e5f5aa15c92295134d6b34 (diff) | |
download | twinkle-4f78c9fc7766574179248bba5943cf7474d4f877.tar twinkle-4f78c9fc7766574179248bba5943cf7474d4f877.tar.gz twinkle-4f78c9fc7766574179248bba5943cf7474d4f877.tar.lz twinkle-4f78c9fc7766574179248bba5943cf7474d4f877.tar.xz twinkle-4f78c9fc7766574179248bba5943cf7474d4f877.zip |
Use QString for string compare in address book's sorting
-rw-r--r-- | src/gui/addresstablemodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/addresstablemodel.cpp b/src/gui/addresstablemodel.cpp index 9fc21fc..dc86660 100644 --- a/src/gui/addresstablemodel.cpp +++ b/src/gui/addresstablemodel.cpp @@ -115,7 +115,7 @@ void AddressTableModel::sort(int column, Qt::SortOrder order) retval = a1.sip_address.compare(a2.sip_address) < 0; break; case COL_ADDR_REMARK: - retval = a1.remark.compare(a2.remark) < 0; + retval = QString::fromStdString(a1.remark) < QString::fromStdString(a2.remark); break; } |