diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 4fb9586..22bc64f 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1386,8 +1386,8 @@ void MainWindow::setupchatTab() { QModelIndex index = ui->listChat->currentIndex(); QString memo_chat = index.data(Qt::DisplayRole).toString(); QClipboard *clipboard = QGuiApplication::clipboard(); - int startPos = memo_chat.indexOf("
") + 3;
-    int endPos = memo_chat.indexOf("
"); + int startPos = memo_chat.indexOf("

") + 3; + int endPos = memo_chat.indexOf("

"); int length = endPos - startPos; QString copymemo = memo_chat.mid(startPos, length); @@ -1401,8 +1401,8 @@ void MainWindow::setupchatTab() { QString memo_chat = index.data(Qt::DisplayRole).toString(); QClipboard *clipboard = QGuiApplication::clipboard(); - int startPos = memo_chat.indexOf("
") + 3;
-    int endPos = memo_chat.indexOf("
"); + int startPos = memo_chat.indexOf("

") + 3; + int endPos = memo_chat.indexOf("

"); int length = endPos - startPos; QString copymemo = memo_chat.mid(startPos, length); int startPosT = memo_chat.indexOf("") + 7; @@ -1439,8 +1439,8 @@ void MainWindow::setupchatTab() { QModelIndex index = ui->listChat->currentIndex(); QString memo_chat = index.data(Qt::DisplayRole).toString(); - int startPos = memo_chat.indexOf("
") + 3;
-    int endPos = memo_chat.indexOf("
"); + int startPos = memo_chat.indexOf("

") + 3; + int endPos = memo_chat.indexOf("

"); int length = endPos - startPos; QString copymemo = memo_chat.mid(startPos, length); int startPosT = memo_chat.indexOf("") + 7;