511 do |
511 do |
512 { |
512 { |
513 digits.setNum (subidx++); |
513 digits.setNum (subidx++); |
514 |
514 |
515 // pad it with a zero |
515 // pad it with a zero |
516 if (digits.length() == 1) |
516 if (length(digits) == 1) |
517 digits.prepend ("0"); |
517 digits.prepend ("0"); |
518 |
518 |
519 fullsubname = subdirname + "/" + Basename (parentpath) + "s" + digits + ".dat"; |
519 fullsubname = subdirname + "/" + Basename (parentpath) + "s" + digits + ".dat"; |
520 } while (m_documents->findDocumentByName ("s\\" + Basename (fullsubname)) or QFile (fullsubname).exists()); |
520 } while (m_documents->findDocumentByName ("s\\" + Basename (fullsubname)) or QFile (fullsubname).exists()); |
521 } |
521 } |