Skip to content

Commit 2271b20

Browse files
committed
bump
1 parent 0bcfc84 commit 2271b20

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

plugins/warp/src/convert.rs

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,19 @@ pub fn comment_to_bn_comment(func: &BNFunction, comment: FunctionComment) -> BNC
2929
}
3030

3131
pub fn platform_to_target(platform: &Platform) -> Target {
32-
Target {
33-
architecture: Some(platform.arch().name().to_string()),
34-
platform: Some(platform.name().to_string()),
32+
let arch_name = platform.arch().name();
33+
let platform_name = platform.name();
34+
// We do not want to populate the platform if we are actually only the architecture.
35+
if arch_name == platform_name {
36+
Target {
37+
architecture: Some(arch_name),
38+
platform: None,
39+
}
40+
} else {
41+
Target {
42+
architecture: Some(arch_name),
43+
platform: Some(platform_name),
44+
}
3545
}
3646
}
3747

plugins/warp/ui/shared/function.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ WarpFunctionInfoWidget::WarpFunctionInfoWidget(QWidget *parent)
296296

297297
// Create tables for the "Constraints", "Comments", and "Variables" tabs
298298
m_commentsTable = new QTableView(this);
299-
m_variablesTable = new QTableView(this);
299+
// m_variablesTable = new QTableView(this);
300300

301301
m_constraintsTable = new WarpConstraintTableWidget(this);
302302
tabWidget->addTab(m_constraintsTable, "Constraints");
@@ -308,7 +308,7 @@ WarpFunctionInfoWidget::WarpFunctionInfoWidget(QWidget *parent)
308308
tabWidget->addTab(m_commentsTable, "Comments");
309309

310310
// Set up variables tab
311-
m_variablesTable->setModel(new QStandardItemModel(this));
311+
// m_variablesTable->setModel(new QStandardItemModel(this));
312312
// TODO: Add variables to data.
313313
// tabWidget->addTab(m_variablesTable, "Variables");
314314

0 commit comments

Comments
 (0)