logic: use wstring in symbol and bookmark names
* use wstring in symbol and bookmark names * fixed setting apppath in windows includes * regard utf8 encoding in shared indexer commands * regard utf8 encoding in shared indexer status
This commit is contained in:
@@ -925,10 +925,10 @@ void QtMainWindow::setupBookmarksMenu()
|
||||
for (size_t i = 0; i < m_bookmarks.size(); i++)
|
||||
{
|
||||
Bookmark* bookmark = m_bookmarks[i].get();
|
||||
std::string name = utility::elide(bookmark->getName(), utility::ELIDE_RIGHT, 50);
|
||||
std::wstring name = utility::elide(bookmark->getName(), utility::ELIDE_RIGHT, 50);
|
||||
|
||||
QAction* action = new QAction();
|
||||
action->setText(name.c_str());
|
||||
action->setText(QString::fromStdWString(name));
|
||||
action->setData(QVariant(int(i)));
|
||||
|
||||
connect(action, &QAction::triggered, this, &QtMainWindow::activateBookmarkAction);
|
||||
|
||||
Reference in New Issue
Block a user