diff --git a/src/frontends/qt4/GuiDocument.cpp b/src/frontends/qt4/GuiDocument.cpp index 1dd083077e..61fbdf8255 100644 --- a/src/frontends/qt4/GuiDocument.cpp +++ b/src/frontends/qt4/GuiDocument.cpp @@ -1692,7 +1692,7 @@ void GuiDocument::apply(BufferParams & params) // Embedded files vector & files = params.extraEmbeddedFiles(); files.clear(); - for (size_t i = 0; i < embeddedFilesModule->extraLW->count(); ++i) { + for (int i = 0; i < embeddedFilesModule->extraLW->count(); ++i) { QListWidgetItem * item = embeddedFilesModule->extraLW->item(i); files.push_back(fromqstr(item->text())); }