mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 03:53:24 +00:00
QML UI: we no longer use the return value of commitChanges()
So make it a void function. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
26779a9af5
commit
10af45d6dc
2 changed files with 10 additions and 11 deletions
|
@ -351,7 +351,7 @@ void QMLManager::refreshDiveList()
|
|||
}
|
||||
|
||||
// update the dive and return the notes field, stripped of the HTML junk
|
||||
QString QMLManager::commitChanges(QString diveId, QString date, QString location, QString gps, QString duration, QString depth,
|
||||
void QMLManager::commitChanges(QString diveId, QString date, QString location, QString gps, QString duration, QString depth,
|
||||
QString airtemp, QString watertemp, QString suit, QString buddy, QString diveMaster, QString weight, QString notes,
|
||||
QString startpressure, QString endpressure, QString gasmix)
|
||||
{
|
||||
|
@ -381,7 +381,7 @@ QString QMLManager::commitChanges(QString diveId, QString date, QString location
|
|||
|
||||
if (!d) {
|
||||
qDebug() << "don't touch this... no dive";
|
||||
return notes;
|
||||
return;
|
||||
}
|
||||
bool diveChanged = false;
|
||||
bool needResort = false;
|
||||
|
@ -507,7 +507,7 @@ QString QMLManager::commitChanges(QString diveId, QString date, QString location
|
|||
d->weightsystem[0].weight.grams = parseWeightToGrams(weight);
|
||||
}
|
||||
}
|
||||
// start and end pressures for first cylinder only
|
||||
// start and end pressures for first cylinder only
|
||||
if (get_pressure_string(d->cylinder[0].start, true) != startpressure || get_pressure_string(d->cylinder[0].end, true) != endpressure) {
|
||||
diveChanged = true;
|
||||
d->cylinder[0].start.mbar = parsePressureToMbar(startpressure);
|
||||
|
@ -585,7 +585,6 @@ QString QMLManager::commitChanges(QString diveId, QString date, QString location
|
|||
prefs.cloud_background_sync = true;
|
||||
prefs.git_local_only = false;
|
||||
}
|
||||
return notes;
|
||||
}
|
||||
|
||||
void QMLManager::saveChanges()
|
||||
|
|
|
@ -84,7 +84,7 @@ public slots:
|
|||
void loadDivesWithValidCredentials();
|
||||
void loadDiveProgress(int percent);
|
||||
void provideAuth(QNetworkReply *reply, QAuthenticator *auth);
|
||||
QString commitChanges(QString diveId, QString date, QString location,
|
||||
void commitChanges(QString diveId, QString date, QString location,
|
||||
QString gps, QString duration, QString depth,
|
||||
QString airtemp, QString watertemp, QString suit,
|
||||
QString buddy, QString diveMaster, QString weight, QString notes,
|
||||
|
|
Loading…
Add table
Reference in a new issue