forked from qt-creator/qt-creator
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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user