Commit a46f0520 authored by Friedemann Kleint's avatar Friedemann Kleint Committed by hjk
Browse files

Fix warning about empty file name when attaching from output tab.

Change-Id: I3a9def260c14944e6fd69fa87b0f1527b8efde3c
Reviewed-by: default avatarhjk <>
parent 67e9bdbd
......@@ -228,8 +228,11 @@ void ModulesModel::removeModule(const QString &modulePath)
void ModulesModel::updateModule(const Module &module)
const int row = indexOfModule(module.modulePath);
const QString path = module.modulePath;
if (path.isEmpty())
try { // MinGW occasionallly throws std::bad_alloc.
ElfReader reader(module.modulePath);
ElfReader reader(path);
ElfData elfData = reader.readHeaders();
if (row == -1) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment