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

Change-Id: I3a9def260c14944e6fd69fa87b0f1527b8efde3c
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Friedemann Kleint
2012-08-31 15:10:39 +02:00
committed by hjk
parent 67e9bdbd44
commit a46f0520f8

View File

@@ -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())
return;
try { // MinGW occasionallly throws std::bad_alloc.
ElfReader reader(module.modulePath);
ElfReader reader(path);
ElfData elfData = reader.readHeaders();
if (row == -1) {