mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-17 02:52:12 +01:00
Fix for OP-455
This commit is contained in:
parent
a7cce25252
commit
11d5d0b6d1
@ -76,11 +76,10 @@ QIODevice* LoggingConnection::openDevice(const QString &deviceName)
|
||||
if (logFile.isOpen()){
|
||||
logFile.close();
|
||||
}
|
||||
QFileDialog * fd = new QFileDialog();
|
||||
fd->setAcceptMode(QFileDialog::AcceptOpen);
|
||||
fd->setNameFilter("OpenPilot Log (*.opl)");
|
||||
connect(fd, SIGNAL(fileSelected(QString)), this, SLOT(startReplay(QString)));
|
||||
fd->exec();
|
||||
QString fileName = QFileDialog::getOpenFileName(NULL, tr("Open file"), QString(""), tr("OpenPilot Log (*.opl)"));
|
||||
if (!fileName.isNull()) {
|
||||
startReplay(fileName);
|
||||
}
|
||||
return &logFile;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user