mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-04 13:02:09 +08:00
cabana: display warning if failed to load dbc from clipboard (#27115)
display warning if failed to load from clipboard old-commit-hash: e1e043231720712d7c1e2d7342f13756d68efcde
This commit is contained in:
@@ -238,7 +238,11 @@ void MainWindow::loadDBCFromClipboard() {
|
||||
remindSaveChanges();
|
||||
QString dbc_str = QGuiApplication::clipboard()->text();
|
||||
dbc()->open("from_clipboard.dbc", dbc_str);
|
||||
QMessageBox::information(this, tr("Load From Clipboard"), tr("DBC Successfully Loaded!"));
|
||||
if (dbc()->messages().size() > 0) {
|
||||
QMessageBox::information(this, tr("Load From Clipboard"), tr("DBC Successfully Loaded!"));
|
||||
} else {
|
||||
QMessageBox::warning(this, tr("Load From Clipboard"), tr("Failed to parse dbc from clipboard!\nMake sure that you paste the text with correct format."));
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::loadDBCFromFingerprint() {
|
||||
|
||||
Reference in New Issue
Block a user