--- a/src/documentmanager.cpp Sat Jan 28 14:13:01 2017 +0200 +++ b/src/documentmanager.cpp Sat Jan 28 14:14:28 2017 +0200 @@ -369,14 +369,14 @@ // If this file already is in the list, pop it out. if (idx != -1) { - if (idx == length(recentFiles) - 1) + if (idx == countof(recentFiles) - 1) return; // first recent file - abort and do nothing recentFiles.removeAt (idx); } // If there's too many recent files, drop one out. - while (length(recentFiles) > (MaxRecentFiles - 1)) + while (countof(recentFiles) > (MaxRecentFiles - 1)) recentFiles.removeAt (0); // Add the file