mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
avoid that the internal Buffer used for cut&paste is visible in View menu.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25732 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d861ab947f
commit
ba7e6e2b03
@ -367,7 +367,7 @@ void putClipboard(ParagraphList const & paragraphs,
|
||||
// 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);
|
||||
|
@ -680,6 +680,11 @@ void MenuDefinition::expandDocuments()
|
||||
// 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)
|
||||
|
Loading…
Reference in New Issue
Block a user