Add the Seer logo to the placeholder source file widget.

This commit is contained in:
Ernie Pasveer
2025-03-23 13:27:57 -05:00
parent ef30fe0c0e
commit cc8e47b930
+7 -8
View File
@@ -628,14 +628,13 @@ void SeerEditorWidgetSourceArea::open (const QString& fullname, const QString& f
setDocumentTitle(_fullname);
// If the filename is null, don't do anything.
if (_fullname == "") {
return;
}
// If the file is null, don't do anything.
if (_file == "") {
qDebug() << "'file' is null. Skipping.";
// If the filename or file is null, it's a placeholder
// widget. Show the Seer icon!
if (_fullname == "" || _file == "") {
setStyleSheet("QPlainTextEdit {"
"background: url(:/seer/resources/seergdb_512x512.png) center no-repeat;"
"border: none;"
"}");
return;
}