Commit 5457a2b5 authored by Eike Ziller's avatar Eike Ziller

Do not use tr() in initialization of static

Leads to issues at load time

Change-Id: Ibf13c88d05b15f6169f3a82a0e1d66c10bff7991
Reviewed-by: Tim Jenssen's avatarTim Jenssen <tim.jenssen@qt.io>
parent 83f5face
......@@ -59,8 +59,7 @@ namespace Internal {
static FolderNavigationWidgetFactory *m_instance = nullptr;
QVector<FolderNavigationWidgetFactory::DirectoryEntry>
FolderNavigationWidgetFactory::m_rootDirectories = {
{FolderNavigationWidget::tr("Computer"), Utils::FileName()}};
FolderNavigationWidgetFactory::m_rootDirectories;
// FolderNavigationModel: Shows path as tooltip.
class FolderNavigationModel : public QFileSystemModel
......@@ -344,6 +343,7 @@ FolderNavigationWidgetFactory::FolderNavigationWidgetFactory()
setPriority(400);
setId("File System");
setActivationSequence(QKeySequence(Core::UseMacShortcuts ? tr("Meta+Y") : tr("Alt+Y")));
addRootDirectory(FolderNavigationWidget::tr("Computer"), Utils::FileName());
}
Core::NavigationView FolderNavigationWidgetFactory::createWidget()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment