diff --git a/src/widgets/HeapDockWidget.cpp b/src/widgets/HeapDockWidget.cpp index d88071e5..1c96955f 100644 --- a/src/widgets/HeapDockWidget.cpp +++ b/src/widgets/HeapDockWidget.cpp @@ -15,8 +15,14 @@ HeapDockWidget::HeapDockWidget(MainWindow *main) connect(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()