Merge pull request #20 from neunenak/fix_warning
Fix compiler warning pertaining to deprecated method
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user