Merge pull request #2235 from opentx/griebd/companion_logsdialog_small_glitch_on_next
[companion][logsdialog]Small glitch when loading a second file.
This commit is contained in:
@@ -455,7 +455,6 @@ bool logsDialog::cvsFileParse()
|
|||||||
if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) { //reading HEX TEXT file
|
if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) { //reading HEX TEXT file
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
ui->sessions_CB->clear();
|
|
||||||
csvlog.clear();
|
csvlog.clear();
|
||||||
logFilename.clear();
|
logFilename.clear();
|
||||||
QTextStream inputStream(&file);
|
QTextStream inputStream(&file);
|
||||||
@@ -489,13 +488,16 @@ bool logsDialog::cvsFileParse()
|
|||||||
if (errors>1) {
|
if (errors>1) {
|
||||||
QMessageBox::warning(this, "Companion", tr("The selected logfile contains %1 invalid lines out of %2 total lines").arg(errors).arg(lines));
|
QMessageBox::warning(this, "Companion", tr("The selected logfile contains %1 invalid lines out of %2 total lines").arg(errors).arg(lines));
|
||||||
}
|
}
|
||||||
plotLock=true;
|
|
||||||
int n=csvlog.count();
|
int n=csvlog.count();
|
||||||
if (n==1) {
|
if (n==1) {
|
||||||
csvlog.clear();
|
csvlog.clear();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
plotLock = true;
|
||||||
|
|
||||||
|
ui->sessions_CB->clear();
|
||||||
ui->sessions_CB->addItem("---");
|
ui->sessions_CB->addItem("---");
|
||||||
|
|
||||||
double lastvalue = 0;
|
double lastvalue = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user