mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Print: display an error message if no printers are found
When pressing Print or Preview from the PrintDialog, we need to first check if there are printers installed. If not we abort and show an error message. This is needed because if no printers are installed, things like the reported page height could be zero and the profile and table print code in PrintLayout will break. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
1a8dd659ca
commit
69676b08fb
2 changed files with 21 additions and 0 deletions
|
@ -18,6 +18,7 @@ public:
|
|||
explicit PrintDialog(QWidget *parent = 0, Qt::WindowFlags f = 0);
|
||||
|
||||
private:
|
||||
bool checkForAvailablePrinters(void);
|
||||
PrintOptions *optionsWidget;
|
||||
PrintLayout *printLayout;
|
||||
QProgressBar *progressBar;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue