Browse Source

Merge pull request #20 from neunenak/fix_warning

Fix compiler warning pertaining to deprecated method
pull/25/head^2
adityapk00 5 years ago
committed by GitHub
parent
commit
504a1244cd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/mainwindow.cpp

3
src/mainwindow.cpp

@ -16,6 +16,7 @@
#include "connection.h"
#include "requestdialog.h"
#include "websockets.h"
#include <QRegularExpression>
using json = nlohmann::json;
@ -443,7 +444,7 @@ void MainWindow::setupSettingsModal() {
void MainWindow::addressBook() {
// Check to see if there is a target.
QRegExp re("Address[0-9]+", Qt::CaseInsensitive);
QRegularExpression re("Address[0-9]+", QRegularExpression::CaseInsensitiveOption);
for (auto target: ui->sendToWidgets->findChildren<QLineEdit *>(re)) {
if (target->hasFocus()) {
AddressBook::open(this, target);

Loading…
Cancel
Save