Rolisteam / rolisteam

Rolisteam is a virtual tabletop. It helps you to manage tabletop role playing games with remote friends/players. It provides many features to share maps, pictures, dice roller, manage background music and much more. The main git repository is available here: [https://invent.kde.org/kde/rolisteam].
http://www.rolisteam.org/
Other
187 stars 27 forks source link

translation command tr() in dynamic initializer crashes program #88

Closed EtienneCoumont closed 5 years ago

EtienneCoumont commented 5 years ago

Your configuration:

Rolisteam version: 1.9.0 Operating System and version (remove irrelevant):

What did you do ? (Explain each step from starting rolisteam to the issue)

What did you get instead ? (Describe in details the issue)

Every call to tr() method, made from a dynamic initializer, like QStringList VisualItem::s_layerName = QStringList() << tr("Ground")<< tr("Object"); prevents the program to start.

When initialization is made in contructor, everything is ok.

Impacted files :

EtienneCoumont commented 5 years ago

It works now. Well done !