diff options
Diffstat (limited to 'kdeprint/management/kmjobviewer.cpp')
-rw-r--r-- | kdeprint/management/kmjobviewer.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kdeprint/management/kmjobviewer.cpp b/kdeprint/management/kmjobviewer.cpp index a58554082..aec1339b8 100644 --- a/kdeprint/management/kmjobviewer.cpp +++ b/kdeprint/management/kmjobviewer.cpp @@ -104,6 +104,8 @@ KMJobViewer::KMJobViewer(TQWidget *parent, const char *name) conf->setGroup( "Jobs" ); resize( conf->readSizeEntry( "Size", &defSize ) ); } + + connect(KMFactory::self()->manager(), TQT_SIGNAL(printerListUpdated()),TQT_SLOT(slotPrinterListUpdated())); } KMJobViewer::~KMJobViewer() @@ -532,6 +534,11 @@ void KMJobViewer::slotRightClicked(TQListViewItem*,const TQPoint& p,int) if (m_pop) m_pop->popup(p); } +void KMJobViewer::slotPrinterListUpdated() +{ + loadPrinters(); +} + void KMJobViewer::loadPrinters() { m_printers.clear(); |