mirror of
https://github.com/KDE/konsole.git
synced 2026-06-13 00:15:55 -04:00
fontembedder - don't use qFatal - just warning and exit
This commit is contained in:
@@ -62,13 +62,14 @@ static quint32 readGlyph(QTextStream& input)
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
if (argc < 2) {
|
||||
if (argc != 2) {
|
||||
qWarning("usage: fontembedder LineFont.src > LineFont.h");
|
||||
exit(1);
|
||||
}
|
||||
QFile inFile(argv[1]);
|
||||
if (!inFile.open(QIODevice::ReadOnly)) {
|
||||
qFatal("Can not open %s", argv[1]);
|
||||
qWarning("Can not open %s", argv[1]);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
QTextStream input(&inFile);
|
||||
|
||||
Reference in New Issue
Block a user