Skip to content

Commit 066255b

Browse files
committed
This exactly matches copy behavior in v3.5.3.
Signed-off-by: Adam Treat <[email protected]>
1 parent 45c53ee commit 066255b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

gpt4all-chat/src/chatmodel.h

+4-2
Original file line numberDiff line numberDiff line change
@@ -987,10 +987,12 @@ class ChatModel : public QAbstractListModel
987987
QMutexLocker locker(&m_mutex);
988988
QStringList content;
989989
for (ChatItem *item : m_chatItems) {
990-
content << item->clipboardContent();
990+
QString string = item->name;
991+
string += item->clipboardContent();
992+
content << string;
991993
}
992994
QClipboard *clipboard = QGuiApplication::clipboard();
993-
clipboard->setText(content.join("\n\n"), QClipboard::Clipboard);
995+
clipboard->setText(content.join("\n"), QClipboard::Clipboard);
994996
}
995997

996998
Q_INVOKABLE void copyToClipboard(int index)

0 commit comments

Comments
 (0)