mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-22 14:10:54 -04:00
fixed styles loading in chat. Added missing history/compact/colored style
This commit is contained in:
parent
d053400914
commit
1e1fe7708f
6 changed files with 38 additions and 3 deletions
|
@ -578,7 +578,10 @@ static bool getStyleInfo(QString stylePath, QString stylePathRelative, ChatStyle
|
|||
{
|
||||
variants.clear();
|
||||
|
||||
std::cerr << "Getting variants for style: \"" << stylePath.toStdString() << "\"" << std::endl;
|
||||
|
||||
if (stylePath.isEmpty()) {
|
||||
std::cerr << "empty!" << std::endl;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -586,11 +589,13 @@ static bool getStyleInfo(QString stylePath, QString stylePathRelative, ChatStyle
|
|||
QDir dir(QApplication::applicationDirPath());
|
||||
if (dir.cd(stylePath) == false) {
|
||||
// style not found
|
||||
std::cerr << "no path!" << std::endl;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (dir.cd("variants") == false) {
|
||||
// no variants available
|
||||
std::cerr << "no variants!" << std::endl;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue