zonyitoo / doubanfm-qt

A DoubanFM client
Other
511 stars 99 forks source link

fix translation; fix exe file icon (for Windows) #43

Closed ziqin closed 8 years ago

ziqin commented 8 years ago

bool QApplication::installTranslator(QTranslator* ptr) 不会对 ptr 所指向的实例进行拷贝。

之前的代码:

if (true) {
    QTranslator translator;
    translator.load("i18n/zh_CN.qm");
    a.installTranslator(&translator);
    // translator 将被析构,而翻译尚未完成
}
zonyitoo commented 8 years ago

好!感谢!