mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-18 10:56:11 +00:00
Select allocator depending upon platform
This commit is contained in:
parent
0380805548
commit
db977a311b
@ -15,8 +15,14 @@ HeapDockWidget::HeapDockWidget(MainWindow *main)
|
||||
connect<void (QComboBox::*)(int)>(ui->allocatorSelector, &QComboBox::currentIndexChanged, this,
|
||||
&HeapDockWidget::onAllocatorSelected);
|
||||
|
||||
// select Glibc heap by default
|
||||
onAllocatorSelected(0);
|
||||
// select default heap depending upon kernel type
|
||||
if (QSysInfo::kernelType() == "linux") {
|
||||
ui->allocatorSelector->setCurrentIndex(Glibc);
|
||||
onAllocatorSelected(Glibc);
|
||||
} else if (QSysInfo::kernelType() == "winnt") {
|
||||
ui->allocatorSelector->setCurrentIndex(Windows);
|
||||
onAllocatorSelected(Windows);
|
||||
}
|
||||
}
|
||||
|
||||
HeapDockWidget::~HeapDockWidget()
|
||||
|
Loading…
Reference in New Issue
Block a user