mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Fixed a bug causing some settings to be saved under printer-related sections.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@1935 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -557,7 +557,10 @@ void DiagramPrintDialog::loadPageSetupForCurrentPrinter() {
|
||||
|
||||
while (!settings.group().isEmpty()) settings.endGroup();
|
||||
settings.beginGroup("printers");
|
||||
if (!settings.childGroups().contains(printer_section)) return;
|
||||
if (!settings.childGroups().contains(printer_section)) {
|
||||
settings.endGroup();
|
||||
return;
|
||||
}
|
||||
|
||||
settings.beginGroup(printer_section);
|
||||
if (settings.contains("orientation")) {
|
||||
@@ -588,6 +591,9 @@ void DiagramPrintDialog::loadPageSetupForCurrentPrinter() {
|
||||
}
|
||||
printer_ -> setPageMargins(margins[0], margins[1], margins[2], margins[3], QPrinter::Millimeter);
|
||||
printer_ -> setFullPage(settings.value("fullpage", "false").toString() == "true");
|
||||
|
||||
settings.endGroup();
|
||||
settings.endGroup();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user