We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1ebbf9d + b41c98d commit 9083b2dCopy full SHA for 9083b2d
1 file changed
qucs/qucs.cpp
@@ -1919,8 +1919,14 @@ bool QucsApp::saveAs()
1919
// if no extension was specified or is unknown
1920
if (!isTextDocument (w))
1921
{
1922
- // assume it is a schematic
1923
- s += ".sch";
+ // if it's a symbol, we add .sym
+ Schematic *sch = dynamic_cast<Schematic*>(Doc);
1924
+ if (sch != nullptr && sch->getIsSymbolOnly()) {
1925
+ s += ".sym";
1926
+ } else {
1927
+ // otherwise assume it is a schematic
1928
+ s += ".sch";
1929
+ }
1930
}
1931
1932
0 commit comments