X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fbufferviewoverlay.cpp;h=02e570299701c49f559dd96da1ee9d71b7546136;hb=61f33c7895e324f6e95034d86897ad2e963653f1;hp=8e802fd90ca48e6fe2ad4b908f9478bbc89d244c;hpb=e2188dc438be6f3eb0d9cdf47d28821aefe9835e;p=quassel.git diff --git a/src/client/bufferviewoverlay.cpp b/src/client/bufferviewoverlay.cpp index 8e802fd9..02e57029 100644 --- a/src/client/bufferviewoverlay.cpp +++ b/src/client/bufferviewoverlay.cpp @@ -109,10 +109,9 @@ void BufferViewOverlay::addView(int viewId) } } else { - disconnect(config, SIGNAL(initDone()), this, SLOT(viewInitialized())); // we use a queued connection here since manipulating the connection list of a sending object // doesn't seem to be such a good idea while executing a connected slots. - connect(config, SIGNAL(initDone()), this, SLOT(viewInitialized()), Qt::QueuedConnection); + connect(config, &BufferViewConfig::initDone, this, selectOverload<>(&BufferViewOverlay::viewInitialized), Qt::QueuedConnection); } save(); } @@ -157,9 +156,7 @@ void BufferViewOverlay::viewInitialized(BufferViewConfig *config) qWarning() << "BufferViewOverlay::viewInitialized() received invalid view!"; return; } - disconnect(config, SIGNAL(initDone()), this, SLOT(viewInitialized())); - - connect(config, SIGNAL(configChanged()), this, SLOT(update())); + connect(config, &BufferViewConfig::configChanged, this, &BufferViewOverlay::update); // check if the view was removed in the meantime... if (_bufferViewIds.contains(config->bufferViewId()))