Skip to content

Commit

Permalink
Allow symbol mode only for SCH and VA; fixes #360
Browse files Browse the repository at this point in the history
  • Loading branch information
ra3xdh committed Nov 13, 2023
1 parent 1a60dee commit 310a764
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions qucs/qucs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2994,6 +2994,11 @@ void QucsApp::slotSymbolEdit()
// in a text document (e.g. VHDL)
if (isTextDocument (w)) {
TextDoc *TDoc = (TextDoc*)w;
if (!TDoc->DocName.endsWith(".va")) {
QMessageBox::warning(this,tr("Error"),
tr("Symbol editing supported only for schematics and Verilog-A documents!"));
return;
}
// set 'DataDisplay' document of text file to symbol file
QFileInfo Info(TDoc->DocName);
QString sym = Info.completeBaseName()+".sym";
Expand Down

0 comments on commit 310a764

Please sign in to comment.