mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
download: replace progress_bar_text by std::string
No fixed buffers. Sadly, the thing is still a global variable. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
91968ac579
commit
7452aa22c2
8 changed files with 87 additions and 84 deletions
|
@ -76,12 +76,13 @@ void showErrorFromC(char *buf)
|
|||
}
|
||||
|
||||
// this gets called from libdivecomputer
|
||||
static void progressCallback(const char *text)
|
||||
static void progressCallback(const std::string &text)
|
||||
{
|
||||
QMLManager *self = QMLManager::instance();
|
||||
if (self) {
|
||||
self->appendTextToLog(QString(text));
|
||||
self->setProgressMessage(QString(text));
|
||||
QString s = QString::fromStdString(text);
|
||||
self->appendTextToLog(s);
|
||||
self->setProgressMessage(s);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue