// some kind of garbage collection there, or a shared_ptr, then this
// would not be needed.
static Buffer * buffer = theBufferList().newBuffer(
- FileName::tempName().absFilename());
+ FileName::tempName().absFilename() + "_clipboard.internal");
buffer->setUnnamed(true);
buffer->paragraphs() = paragraphs;
buffer->params().setDocumentClass(docclass);
// We cannot use a for loop as the buffer list cycles.
do {
QString label = toqstr(b->fileName().displayName(20));
+ if (b->isUnnamed() && label.endsWith(".internal")) {
+ // This is an internal Buffer (eg. for clipboard operations)
+ b = theBufferList().next(b);
+ continue;
+ }
if (!b->isClean())
label += "*";
if (ii < 10)