summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelogimportdialog.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-01-07 15:40:10 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-07 12:33:12 -0800
commit11fc888cdc07708394f047097a1dd6510eb4bb09 (patch)
treebf0be8f7fab5f294574bd5a68f78c07f055bb634 /qt-ui/divelogimportdialog.h
parent3b654438b6774f27e05d9d8f35496166c2f155dc (diff)
downloadsubsurface-11fc888cdc07708394f047097a1dd6510eb4bb09.tar.gz
Fix moving columns around when one of the columns is empty
I used to compare strings, but since there can be more than one empty column, this was a very sad choice, now I'm comparing indexes. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/divelogimportdialog.h')
-rw-r--r--qt-ui/divelogimportdialog.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/divelogimportdialog.h b/qt-ui/divelogimportdialog.h
index cc017e8c9..e8421583c 100644
--- a/qt-ui/divelogimportdialog.h
+++ b/qt-ui/divelogimportdialog.h
@@ -40,7 +40,7 @@ public:
int columnCount(const QModelIndex &parent = QModelIndex()) const;
void setColumnValues(QList<QStringList> columns);
QStringList result() const;
- void swapValues(const QString& one, const QString& other);
+ void swapValues(int firstIndex, int secondIndex);
private:
QList<QStringList> columnValues;
QStringList columnNames;