Add main menu recent files

Dirk Hohndel dirk at hohndel.org
Fri Feb 21 08:10:17 UTC 2014


On Fri, 2014-02-21 at 07:29 -0800, Dirk Hohndel wrote:

> You also need to decide whether the keys are 0 based or one based:
> 
> +    for (int c = 1; c <= 4; c++) {
> +        QString key = QString("File_%1").arg(c);
> 
> and later
> 
> +    for (int c = 0; c < 4; c++) {
> +        QString key = QString("File_%1").arg(c + 1);

That comment should have been "whether the loop variable is 0 based or 1
based". Your code is correct, but confusing.

/D




More information about the subsurface mailing list